SORTING

Pawan kumar

Total Post:19

Points:133
Posted by  Pawan kumar
 1274  View(s)
Ratings:
Rate this:

Sir i want to applying sorting a columns or more than one columns in GridView.and how add  the images of  ascending and decending order in the columns.

so how i manage sorting on gridview

  1. Amit Singh

    Post:103

    Points:721
    Re: Sorting

    hi, pawan

    we sort the column in gridview
    set the allowsorting property of gridview is true
    and we use the sortexpression properties in boundfield tag
    for example
    <asp:gridview runat="server" AllowSorting="true">
    <columns>
    <asp:BoundField datafield="username" HeaderText="User Name" SortExpression="username"/>
    and so on..
    and bind the data in gridview in sort order by using the query in asc or desc or set the Allowsorting property of grid view is true and use many other way.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!