Sorting GridView in Imar.Spaanjaars article

Articls are posted here:

For Sorting:

1. Create an overload of GetList that accepts the SortExpression as a String.

2. Change the ODS declaration so it contains a parameter for this new sortExpression:

[asp:Parameter Name=”sortExpression” Type=”String” /]

3. Set the SortParameterName attribute of the ODS:


4. Enable sorting on the GridView.

Leave a Reply