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.

DataGrid + Sort arrow disappears.

Thread ID:

Created:

Updated:

Platform:

Replies:

110337 Jul 30,2013 08:36 AM Aug 1,2013 06:00 AM WinRT 4
loading
Tags: SfDataGrid
Nicky Mogensen
Asked On July 30, 2013 08:36 AM

Hi.

I have a problem when doing custom sorting on the DataGrid.

I've attached an eventhandler with Grid.SortColumnsChanging += Grid_SortColumnsChanging.

Now, in the eventhandler I have e.Cancel = true as the last line, so that it won't continue doing the default sorting (it results in an exception due to my dataentity). But when I do this cancel, the grid won't show the sort direction, or the sort column, in the column headers. 

How do I fix this?

//Nicky

Dineshprabhu V [Syncfusion]
Replied On July 31, 2013 07:18 AM

Hi Nicky,

 

Thanks for contacting Syncfusion support.

 

We have analyzed your query. By using the custom sort comparer, you can achieve the custom sorting in DataGrid. To know more about custom sorting please refer the following link.

 

UG Link: http://help.syncfusion.com/UG/winrt/default.htm#!Documents/sorting.htm

 

However, if you set e.Cancel as true in SortColumnChanging event, DataGrid skip the sorting operation and doesn’t show the Sort Icon in column header.

 

Please let us know if you require further assistance on this.

 

Thank you,

Dineshprabhu V


Nicky Mogensen
Replied On July 31, 2013 09:48 AM

Thank you. I will look into this tomorrow, and then return back how it worked out :)

Nicky Mogensen
Replied On August 1, 2013 04:01 AM

Thank you. It worked like a charm :)

Dineshprabhu V [Syncfusion]
Replied On August 1, 2013 06:00 AM

Hi Nicky,

 

Thank you for your update.

 

Please let us know if you need further assistance.

 

Thank you,

Dineshprabhu V


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.

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.

;