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

Null in dropdown

Thread ID:





80013 Mar 6,2009 06:09 PM UTC Mar 10,2009 12:29 PM UTC WinForms 3
Tags: Grouping
Stephane _
Asked On March 6, 2009 06:09 PM UTC


I have a grid with a dropdown.

The list that I bind to the dropdowns does not contain null but the object that I bind to the grid does (only at the beginning since the user haven't chosen a value).

The ID in the object is a Nullable(Of Integer)

This gives me a lot of

System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindKey(IList thisList, PropertyDescriptor property, Object key)

Is there a property I can set (or something else) that will eliminate this exception?

Nisha Arockiya A [Syncfusion]
Replied On March 9, 2009 11:50 AM UTC

Hi Stephane,

Thanks for your interest in Syncfusion Products.

It is hard to trace out the problem with out the working sample. Could you please reproduce the issue in a sample or provide your own working sample , so that it would be very helpful for us to fix the issue on time??

Please let me know any difficulties.


Stephane _
Replied On March 9, 2009 01:52 PM UTC

If you pass your mouse over the dropdown arrow when there’s no value selected, you'll see a NullReference Exception.

You won't see a messagebox, it will be in the output window in vs.


Nisha Arockiya A [Syncfusion]
Replied On March 10, 2009 12:29 PM UTC

Hi Stephane,

Thanks for the update.

It seems that the column datatype doesn't match the cell value. You might try setting the Style.CellValueType to the desired vlauetype. (ValueMember) to see that if that helps.

The Exception that occur on the output window has been handled internally, which does not affect the process execution.
If you find it crash your sequence even now at runtime, please let me know.



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