Tuesday, April 1, 2014

Make Field in Gridview Sortable

Step 1: Add SortExpression=""

 <asp:BoundField DataField="CourseId" HeaderText="Course Id" SortExpression="CourseId"
   HeaderStyle-CssClass="hideTemplateField" ItemStyle-CssClass="hideTemplateField"                                           ControlStyle-CssClass="hideTemplateField" />

No comments:

Post a Comment