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.
Syncfusion Feedback

Error when click header to sort

Thread ID:

Created:

Updated:

Platform:

Replies:

108229 Apr 10,2013 12:00 AM Apr 24,2013 05:11 AM WinRT 3
loading
Tags: SfDataGrid
Gary Pansino
Asked On April 10, 2013 12:00 AM

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
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Syncfusion.Linq.WinRT
  StackTrace:
       at Syncfusion.Linq.QueryableExtensions.GetLambdaWithComplexPropertyNullCheck(IQueryable source, String propertyName, ParameterExpression paramExpression)
  InnerException: 

Any ideas about how to correct?

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

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.

Regards,

Prakash S.


Gary Pansino
Replied On April 10, 2013 07:12 PM

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

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

Hi Gary,

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

Regards,

Prakash S.


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.

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

;