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.

Sorting by display member

Thread ID:

Created:

Updated:

Platform:

Replies:

43846 May 5,2006 01:43 AM May 23,2006 09:23 AM Windows Forms 6
loading
Tags: GridControl
Mitesh Bulsara
Asked On May 5, 2006 01:43 AM

Hi I have a GroupingGrid and a column of combobox type. when i try to sort it, it sorts w.r.t value member but i want to sort it w.r.t display member. Thanks Mitesh

Administrator [Syncfusion]
Replied On May 5, 2006 02:26 AM

Hi Mitesh, Please refer to the below forum thread that deals with a same issue. http://www.syncfusion.com/support/forums/message.aspx?MessageID=39048 Regards, Calvin.

Mitesh Bulsara
Replied On May 15, 2006 09:04 AM

Hi, Was not quite able to understand that sample. I am sending you a sample. If you click on Sort column in the sample, it doesn''t sort Alphabatically but by value member. Please suggest what should be done to sort it alphabatically or by display member. Regards Mitesh. >Hi Mitesh, > >Please refer to the below forum thread that deals with a same issue. > >http://www.syncfusion.com/support/forums/message.aspx?MessageID=39048 > >Regards, >Calvin.

SampleSorting.zip

Administrator [Syncfusion]
Replied On May 16, 2006 02:20 AM

Hi Mitesh, In the above given forum link, sorting by the display member is achieved when using the ForeignKeyReference. I have modified your sample as mentioned in the above given forum link to get sort by the display member. Let us know if you need any further assistance. Regards, Calvin.

SampleSorting2.zip

Mitesh Bulsara
Replied On May 17, 2006 09:24 AM

Hi Calvin, Now its working but there are some issues pertaining to my project where this approach will not work. I would sincerely appreciate if you help me out in sorting the same sample using Custom Comparer/ CustomBucketComparer or some other way. Regards Mitesh

Administrator [Syncfusion]
Replied On May 18, 2006 01:37 AM

Hi Mitesh, Here is a sample with custom sorting. Let us know if this serves your need. Regards, Calvin.

CustomSort.zip

Mitesh Bulsara
Replied On May 23, 2006 09:23 AM

Hi Calvin, This is exactly what i needed. But is it possible that we set the Comparer at the time of loading the grid itself rather then setting it everytime when the event is fired. I hope you understood what i want. Thanks Mitesh

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.

;