This is a migrated thread and some comments may be shown as answers.

sorting for grid

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 03 Feb 2014, 12:49 PM
Hi
i have sorting for grid, but the GridHyperLinkColumn is nt sorting. What may be missing?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Feb 2014, 12:53 PM
Hi Erin,

To enable sorting for GridHyperLinkColumn you need to set appropriate SortExpression values for those columns.
When using GridHyperLinkColumn, the SortExpression value should match the DataTextField property of the column.

ASPX:
<telerik:GridHyperLinkColumn DataTextField="Country" NavigateUrl="http://www.telerik.com"
 HeaderText="Country" SortExpression="Country" />

Please try and let me know if any concern.
Thanks,
Princy
Tags
Grid
Asked by
Erin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or