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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG NullReferenceException with DBNull values

Thread ID:





40207 Jan 27,2006 03:10 PM UTC Feb 3,2006 09:34 PM UTC WinForms 3
Tags: GridControl
Michael Cruanes
Asked On January 27, 2006 03:10 PM UTC

Hi, I post this problem a second time because I hope you will process it. I need rapidly an answer if you can fix it or not. Depending on your answer we have to decide if we go back to version. We are using VS2005 and .Net 2.0 Framework. After upgrading from to, we have following exception: 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) 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. 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 to fix it. I remind that this problem did not occur with We wish to have a fix asap. Best Regards, Michael


Administrator [Syncfusion]
Replied On January 27, 2006 08:21 PM UTC

Hi Michael, thanks for the sample project. I see the problem and we''ll get that fixed. We are actually going to provide a patch soon that will address all the issues we noticed since the RTM and will include a fix for this problem then. Stefan

Michael Cruanes
Replied On January 28, 2006 11:24 AM UTC

Hi Stefan, What do you mean with "soon" ? I wonder how such a bug can happen between beta 3 and final release. Regards, Michael

Administrator [Syncfusion]
Replied On February 3, 2006 09:34 PM UTC

Michael, With "soon" I mean next week. The problem got introduced when we fixed defect 1331. Stefan >Hi Stefan, > >What do you mean with "soon" ? >I wonder how such a bug can happen between beta 3 and final release. > >Regards, >Michael


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon