Is there a way to sort column(s) before exporting the grid to Excel? I would like to perform sorting in the ConfigureExport() method of the demo RadGrid Export source.
Thanks in advance.
JM
1 Answer, 1 is accepted
0
Vlad
Telerik team
answered on 11 Aug 2008, 07:57 AM
Hi JM,
You can use ExcelML export and add the following code to ConfigureExport() method:
public void ConfigureExport()
{ GridSortExpression exp = new GridSortExpression();
exp.FieldName = "ContactName";
exp.SortOrder = GridSortOrder.Descending;