Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • 1
    Sorting is just happening in the UI. Why would you want to sort your underlying datasource? Your datasource just holds yuor data, if you want to access it in a certain order, yuo can use indexes or views for that, certainly not anything an end user decides might be fun to sort on. Commented Oct 30, 2013 at 12:16
  • why should sort reflect in data table when you are sorting Gridview ? Commented Oct 30, 2013 at 12:16
  • You can sort the datasource in the code behind. Commented Oct 30, 2013 at 12:17
  • Kindly, show some code specially your query before datatable was bind to your DataGridView. Commented Oct 30, 2013 at 12:21
  • If you have the option I would really recommend WPF, it's much better at this sort of thing. Commented Oct 30, 2013 at 12:26