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

NullReferenceException when editing the in the sorted column

Thread ID:





42058 Mar 17,2006 11:20 PM UTC Mar 20,2006 03:56 PM UTC WinForms 1
Tags: GridControl
John Pritchard
Asked On March 17, 2006 11:20 PM UTC

In the attached demo, I have a form with a bound grid (version and a GridFilterBar wired to the grid. I also have a DataSet which I set the Tables[0].DefaultView.Sort to the first column table and then set Table[0] as the grid''s DataSource. If I edit the any of the cells in the first column in such a way to cause it to resort when I leave the row, I get a NullReferenceException. Run the sample, change the cell containing "ID 1" to "xxxx" and leave the row. --> NullReferenceException. This happens down in grid code and there is no way I that I know to catch the exception myself. If I do not wire the GridFilterBar, the exception will not occur. If I double-click the second column''s header to change the sort order, and then double-click the first column''s header to change the sort order back, the NullReferenceException will not occur. Is there a preferred method to setup the sort during the form''s Load routine? I am currently using the DefaultView.Sort property on the DataTable. Should I be using a method/property on the grid instead? This behavior is not reproducable on all machines. I have a collegue who cannot reproduce this behavior. However, he is not running Windows XP Service Pack 2 (I am). We are however both running the same version of syncfusion essential suite.


Administrator [Syncfusion]
Replied On March 20, 2006 03:56 PM UTC

Hi JP, The issue is working fine here (Windows XP Service pack 2). Please refer to the attached image illustrating the desired output . Please try this issue in our later versions and let us know if this helps. And kindly send call stack. Best regards, Madhan.


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