GridView sorting: SortDirection always Ascending
I have a gridview and I need to sort its elements when the user clicks on the header.
Its datasource is a List object.
I have a gridview and I need to sort its elements when the user clicks on the header.
Its datasource is a List object.
I’m trying to get a gridview to sort and page manually with no success.
I have a GridView on my screen and need it to allow paging.
I created a sorter that StrCmpLogicalW / shlwapi.dll. unfortunately it causes errors on partial trust environments. I am in a really bad need of a solution that does not use ‘shlwapi.dll’ or StrCmpLogicalW and works in the same fashion.
I want to convert my GridView to a DataTable. Note: The GridView doesn’t have a DataSource!
I want to sort the DataTable and put it back to the GridView, is it possible? Important is that my GridView must be sorted.
I have a GridView set up in the following way:
If i have a list of numbers:
I have a DataTable that looks like below;
I would like to display simple gridview on my page and provide sorting and paging functionality to it. Sorting and paging individually is working ok, but the combination of both does not. For example if I sort the first column descending and then go to page number two, then I see the second page of data with default sorting (ascending).
I have an XML document for which I want to sort specific nodes alphabetically.