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

track GridView column reorder sequence

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
nimesh
Top achievements
Rank 1
nimesh asked on 24 Jan 2017, 10:28 AM
Column reorder is enable in RadGridView. want to track the column order.
 
say I have three column Id, and . order is 1 2 and3. so my DB will have values like 1,2,3.
If I swap and name, require as 1,3,2.

Please Suggest.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 24 Jan 2017, 12:30 PM
Hello Nimesh,

You can use the CollectionChanged event to determine when a column is moved:
radGridView1.Columns.CollectionChanged += Columns_CollectionChanged;
 
 
private void Columns_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
    if (e.Action == NotifyCollectionChangedAction.Move)
    {
     
    }
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
nimesh
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or