DataGrid sorting and paging

Discussion in 'ASP.NET / ASP.NET Core' started by brightmosquito, Jan 20, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I use AllowPaging and AllowSorting in a DataGrid. When I change page index, how can I keep the SortExpression ?
     
  2. you may have already sorted this out... you need to keep track of it yourself, the datagrid does not store this for you, so a simple variable of some sort to see what column was last sorted by, same for paging as well, you need to keep track of it.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page