Total Post:18


 1691  View(s)
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. 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">
    <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


Please check, If you want to make this post sponsored

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