现象:UltraGrid 绑定Nullable型对象属性(public Nullable<Int32> ID)时,如果column嵌入的editorcontrol是DataTable类型,如UltraCombo.DataSource=DataTable,则有时会出现:dbnull.value无法转换为Nullabled的异常提示。
解决方法:
this.ultraGrid1.DisplayLayout.Bands[0].Columns["ID"].Nullable = Infragistics.Win.UltraWinGrid.Nullable.Nothing;
确保 this.ultraGrid1.DisplayLayout.Bands[0].Columns["ID"].ValueList = null;//否则出现cell update error
以上情况在Infragistics2006V2版本出现,据说Infragistics2009V2将解决此BUG