Hi,
You can handle the TableControlQueryAllowDragColumn event and get dragging column name and position. Below is a code snippet. If you want to reinsert the particular column then use the TableDescriptor.VisibleColumns collection in a Grid. Here is a code snippet.
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Insert(3,"ColumnName");
this.gridGroupingControl1.TableControlQueryAllowDragColumn +=new GridQueryAllowDragColumnEventHandler(gridGroupingControl1_TableControlQueryAllowDragColumn);
private void gridGroupingControl1_TableControlQueryAllowDragColumn(object sender, GridQueryAllowDragColumnEventArgs e)
{
if( e.Reason == GridQueryAllowDragColumnReason.MouseUp)
{
e.AllowDrag = false;
Console.WriteLine(e.InsertBeforeColumn +":::" + e.Column );
}
}
Here is a forum thread that discuss with the last column dragging ina grid.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=58196Best regards,
Haneef