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

2 posts, 0 answers
  1. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 01 Jun 2009 Link to this post


    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 ?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Jun 2009 Link to this post

    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.

Back to Top