How to sort GridView but not via SQL or a datatable VB 2010
-
We have a VB 2010 ASPX program with a GridView that needs to support sortable columns. There is no database. Is there a way to just sort the entire grid based on 1 column without redoing the entire grid? Do we have to use a DataTable as sort that?
-
We have a VB 2010 ASPX program with a GridView that needs to support sortable columns. There is no database. Is there a way to just sort the entire grid based on 1 column without redoing the entire grid? Do we have to use a DataTable as sort that?
-
My guess is you can create a datatable hard coded out of the data you do have and then sort on that. You also could use generics and inherit icomparable and then use the sort method in that custom data class. My suggestion would be datatable will be easier.. And then run .sort on it.
=)