We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GDBG problem with 4.1.0.50

Thread ID:

Created:

Updated:

Platform:

Replies:

40115 Jan 25,2006 02:51 PM Jan 26,2006 03:38 AM Windows Forms 3
loading
Tags: GridControl
Michael Cruanes
Asked On January 25, 2006 02:51 PM

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

Administrator [Syncfusion]
Replied On January 25, 2006 03:33 PM

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 >

Administrator [Syncfusion]
Replied On January 26, 2006 02:33 AM

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

Michael Cruanes
Replied On January 26, 2006 03:38 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;