Sort GridView Bound to DataTable

后端 未结 2 1272
遇见更好的自我
遇见更好的自我 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.

    0 讨论(0)
  • 2021-01-23 16:56

    I ended up solving this problem using this example from MSDN and attaching my own datatable, which was acquired through a LINQ Query in my repository.

    0 讨论(0)
提交回复
热议问题