Sorting

Total Post:18

Points:126
 1660  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. 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.

      Modified On Mar-29-2018 04:09:37 AM

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.