RC
Rajadurai C
Syncfusion Team
May 19, 2009 03:30 PM UTC
Hi Damodhar,
Thanks for your interest in Syncfusion products.
To prevent a column from being dropped to certain column while moving, please try to handle the following code in ColsMoving event.
private void gridControl1_ColsMoving(object sender, Syncfusion.Windows.Forms.Grid.GridRangeMovingEventArgs e)
{
if(e.Target == 3)
{
e.Cancel = true;
this.gridControl1.Cols.MoveRange(e.From,1,e.From);
}
}
This prevents the column moved from being dropped, if the target column is 3rd in grid.
Regards,
Rajadurai