GDBG problem with 4.1.0.50

Hi Syncfusion Team, Since we upgraded to 4.1.0.50 no ComboBox using a dataset is working and following trace appears in output window: System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Common.ObjectStorage.CompareValueTo(Int32 recordNo1, Object value) at System.Data.Index.FindNodeByKey(Object originalKey) at System.Data.Index.FindRecords(Object key) at System.Data.DataView.System.ComponentModel.IBindingList.Find(PropertyDescriptor property, Object key) at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindKey(IList thisList, PropertyDescriptor property, Object key) at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindValue(Object value) at Syncfusion.Windows.Forms.Grid.GridComboBoxCellModel.GetFormattedText(GridStyleInfo style, Object value, Int32 textInfo) at Syncfusion.Windows.Forms.Grid.GridCellModelBase.GetFormattedOrActiveTextAt(Int32 rowIndex, Int32 colIndex, GridStyleInfo style) at Syncfusion.Windows.Forms.Grid.GridStaticCellModel.OnQueryPrefferedClientSize(Graphics g, Int32 rowIndex, Int32 colIndex, GridStyleInfo style, GridQueryBounds queryBounds) Do you have any proposal to solve this? Best Regards, Michael

3 Replies

AD Administrator Syncfusion Team January 25, 2006 08:33 PM UTC

Hi Michael, Do you have a sample that shows the problem so we can debug into it? Also which framework version do you use? Thanks, Stefan >Hi Syncfusion Team, > >Since we upgraded to 4.1.0.50 no ComboBox using a dataset is working and following trace appears in output window: > >System.NullReferenceException: Object reference not set to an instance of an object. > at System.Data.Common.ObjectStorage.CompareValueTo(Int32 recordNo1, Object value) > at System.Data.Index.FindNodeByKey(Object originalKey) > at System.Data.Index.FindRecords(Object key) > at System.Data.DataView.System.ComponentModel.IBindingList.Find(PropertyDescriptor property, Object key) > at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindKey(IList thisList, PropertyDescriptor property, Object key) > at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindValue(Object value) > at Syncfusion.Windows.Forms.Grid.GridComboBoxCellModel.GetFormattedText(GridStyleInfo style, Object value, Int32 textInfo) > at Syncfusion.Windows.Forms.Grid.GridCellModelBase.GetFormattedOrActiveTextAt(Int32 rowIndex, Int32 colIndex, GridStyleInfo style) > at Syncfusion.Windows.Forms.Grid.GridStaticCellModel.OnQueryPrefferedClientSize(Graphics g, Int32 rowIndex, Int32 colIndex, GridStyleInfo style, GridQueryBounds queryBounds) > > >Do you have any proposal to solve this? > >Best Regards, >Michael >


AD Administrator Syncfusion Team January 26, 2006 07:33 AM UTC

Hi Stephan, I am using 2.0 Framework. The problem apparently occurs only when the DataTable bound to the GDBG has DBNull values and the cell is a ComboBox. When clicking in the cell, the cells becomes red with "Exception" as cell-text and the application crashes. Best Regards, Michael


MC Michael Cruanes January 26, 2006 08:38 AM UTC

In attachment is a sample that reproduces the problem. The first row has a DBNull value. Click in the cell and you will see that happens. I hope it will help you.

TestGDBG2.zip

Loader.
Up arrow icon