Rank: Member Groups: Member
Joined: 2/24/2009 Posts: 16
|
Hi,
I am trying to set grid column order dynamically. We have functionlity where user can select display columns and there order. And based on user selection grid should populated with selected cloumn and in same order. Any help will be higly appreciated.
Thanks, Alvin
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Alvin,
What you want has nothing to do with column reordering. You need to dynamically create Grid columns based on user selection. You would do so by clearing the Grid's Columns collection first, then create whatever columns and then add it to the Grid's Columns collection. Once you are done with that, you then populate the Grid from your data source.
Thanks
|