LS
Lingaraj S
Syncfusion Team
November 25, 2009 12:26 PM UTC
Hi Hemanth,
Thank you for your interest in Syncfusion products.
The GridControl re-size the column when DoubleClick has been performed in column separator. If you want to prevent this functionality in GridControl, then please try using the below way to achieve your requirement as shown below:
this.gridControl1.ResizingColumns += new GridResizingColumnsEventHandler(gridControl1_ResizingColumns);
void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
if (e.Reason == GridResizeCellsReason.DoubleClick)
{
e.Cancel = true;
}
}
Please let me know if you have any queries.
Regards,
Lingaraj S.