Is it possible to just enable sorting on the grid and then allow the users to sort the data in the grid, without having to add any code, behind the scenes?
That's what I thought, I thought it should be that simple, but when I do that and click on the header to sort it my whole grid goes away and doesn't come back. I was wondering if I had to write my own sort handler, but that seemed like a lot of work just to do a simple asc or desc sort.
I assume that you are binding the grid in PageLoad event, which is
Simple data binding technique. If you are using any advanced feature in
grid(like sorting), then a better approach is using "AdvancedData binding" using
NeedDataSource event. Set the DataSource in NeedDataSource event and set
the AllowSorting property of RadGrid to True. RadGrid fires the
NeedDataSource event each time it needs to be bound to a data source.
For more information about this can be available here: Grid / Advanced Data Binding Advanced Data-binding (using NeedDataSource event)