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

Error when click header to sort

Thread ID:





108229 Apr 10,2013 04:00 AM UTC Apr 24,2013 09:11 AM UTC WinRT 3
Tags: SfDataGrid
Gary Pansino
Asked On April 10, 2013 04:00 AM UTC

I have a datagrid bound to a collection.  Everything is working great, but when I click the header to sort (sorting is enabled in XAML, and I have a reference to the full suite of syncfusion controls) I get this error:

System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
       at Syncfusion.Linq.QueryableExtensions.GetLambdaWithComplexPropertyNullCheck(IQueryable source, String propertyName, ParameterExpression paramExpression)

Any ideas about how to correct?

Prakash Selvaraj [Syncfusion]
Replied On April 10, 2013 11:50 AM UTC

Hi Gary,

Sorry for this inconvenience caused.

We have analysed your query. We suspect that you are missing the MappingName property in GridColumn or it has not set properly. To enable the sorting, grouping and filtering in DataGrid you must provide the MappingName to the GridColumn. After setting MappingName correctly if this issue still persists at your end then, please provide us a sample with replication procedure. So that we can able to rectify your problem.

Please let us know if you need further assistance.


Prakash S.

Gary Pansino
Replied On April 10, 2013 11:12 PM UTC

That was exactly it.  Thanks for another excellent example of Syncfusion's great customer service.

Prakash Selvaraj [Syncfusion]
Replied On April 24, 2013 09:11 AM UTC

Hi Gary,

Thank you for your feedback, Please let us know if you have any concern.


Prakash S.


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