This is a migrated thread and some comments may be shown as answers.

Grid - Dynamically added/removed columns; bound to datatable - sorting problem

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 01 Jun 2009, 09:27 PM
Hello,

I have a page. The page has a RadGrid on it.
The datasource for the grid is DataTable that can change during the postback (along with the grid columns).

The grid is configured to allow sorting, but the sorting doest work. Any configuration I try, the grid does not fire OnSortCommand  event.

What should I do ?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jun 2009, 05:22 AM
Hi Roland,

Sorting feature for the Grid will work when you set the AllowSorting property of the Grid to true. Are you binding the Grid in the NeedDataSource event? it would be nice if you could send me your entire aspx  and code behind.

Shinu.
Tags
Grid
Asked by
Roland
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or