且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

问题的GridView,绑定()和DropDownList的

更新时间: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.