Custom Sorting in GridDataBoundGrid

Hi,
I am using GridDataBoundGrid.

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 another text in the cells of the grid from the text that is in the dataTable (the displayedText = FormattedText).

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

I asked this question before but I didn't said what grid I used and so I have got answer about grid that I didn't use in my code, and it wasn't suitable for me.

thanks,
Yoni



3 Replies

JJ Jisha Joy Syncfusion Team July 10, 2008 09:09 AM UTC

Hi Yoni,

Thank you for your interest in Syncfusion products.

Please refer the foloowing browser sample that is shipped with our products:


..\\Syncfusion\EssentialStudio\6.3.0.25\Windows\Grid.Windows\Samples\2.0\DataBound\DataBoundSortByDisplayMember\cs

This sample also implements a solution for sorting a column by it's display member instead of the value member of the column.


Please try this and let me know if this helps.

Regards,
Jisha




AD Administrator Syncfusion Team July 11, 2008 01:41 PM UTC

hey,
Can you give the example in the forum instead, I didn't figure out where to look at. and also I'm working with older version of syncfusion (I think Version 5).

Thanks,
Yoni



JJ Jisha Joy Syncfusion Team July 15, 2008 06:32 AM UTC

Hi Yoni,

Thank you for your update.

This sample can also accessible from the dashboard. Please refer the location from DashBoard.

Window Forms Samples---> Grid Samples ---> DataBound--- > DataBoundSortByDisplayMember

Regards,
Jisha


Loader.
Up arrow icon