sort columns of gridview in asp.net c#

前端 未结 7 434
别那么骄傲
别那么骄傲 2020-12-17 00:43

Can anyone tell the function to sort the columns of a gridview in c# asp.net.

The databound to gridview is from datacontext created using linq. I wanted to click th

7条回答
  •  太阳男子
    2020-12-17 01:22

    In the Properties Panel double Click on the Sorting Entry. A new Function will be created. In this Function write the Code to fill the Gridview. The only difference is to change the query based on GridViewSortEventArgs e

    e.SortExpression and
    e.SortDirection allways Ascending :-(

    I hope this very short Answer helps

提交回复
热议问题