更新时间:2022-05-30 02:48:10
如果任何人的兴趣,我想我通过重写PerformDataBinding方法和捕捉ArgumentOutOfRangeException出现解决了这个。我怀疑SelectedValue属性可能需要重写,以及如果在两个属性绑定的顺序可能会有所不同。
If anyone's interested, I think I solved this by overriding the PerformDataBinding method and catching the ArgumentOutOfRangeException there. I suspect that the SelectedValue property might need to be overridden as well if the order in which the two properties are bound can vary.