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

Sort by formatted text

Thread ID:

Created:

Updated:

Platform:

Replies:

70687 Dec 26,2007 10:52 PM UTC Dec 27,2007 11:40 AM UTC Windows Forms 1
loading
Tags: GridControl
Yoni
Asked On December 26, 2007 10:52 PM UTC

Hi,
I have derived from a model, and configure a column to use the model and renderer that I wrote.
Than I derived from the function GetFormattedText in order to display formattedText.

How can I sort a column (By clicking his header) by the formatted text that is displayed in the cells ??

thanks,
Yoni


Sri Subhashini M [Syncfusion]
Replied On December 27, 2007 11:40 AM UTC

Hi Yoni,

Thank you for using Syncfusion product.

You need to implement a custom sorting to do this. You can add a custom IComparer to the SortColumnDescriptor for this column. You do this by setting the Comparer property on the SortColumnDescriptor. In your custom IComparer object, you can sort based on any criteria of your choice.

When you do custom sorting in the grid, then you need to use custom grouping for handling the groups.

Please refer these forum threads
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=46737

See the following KB article for more details on this.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=73

Please let me know if you need any further assistance.

Regards,
Suba


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

;