Description:
I wish to respond to the position of a column being changed but I do not see an event which is triggered at this time. Any suggestions?
Answer:
You should use the DragObjectDrop event to catch the moment when an end-user moves a column to a new position. The e.DragObject parameter defines the column object being dropped. For example, here is some sample code showing how to determine the moment when a column is dropped onto the group panel:
C#private void gridView1_DragObjectDrop(object sender, DevExpress.XtraGrid.Views.Base.DragObjectDropEventArgs e) {
if ((e.DragObject is GridColumn) && (e.DropInfo is ColumnPositionInfo) && ((e.DropInfo as ColumnPositionInfo).InGroupPanel)) {
... // your code is here
}
}