Sort by formatted text

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


1 Reply

SS Sri Subhashini M Syncfusion Team 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


Loader.
Up arrow icon