Sort GridView Bound to DataTable

后端 未结 2 1271
遇见更好的自我
遇见更好的自我 2021-01-23 16:15

I have a repository that contains all of my LINQ queries for this project that I am working on. I am able to get the LINQ results to a DataTable and bind that to a gridview for

2条回答
  •  孤独总比滥情好
    2021-01-23 16:54

    If you bind the GridView to a DataSourceControl then the sorting is taken care of for you. Otherwise you're stuck with doing it manually.

提交回复
热议问题