We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Double Click on Column Header moving columns

I am currently using Syncfusion 3.3. I am using a GridControl, whenever i double click on the column header, the columns are getting moved in a weired fashion. Is this a bug.

Thanks
Hemanth

1 Reply

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.

Loader.
Live Chat Icon For mobile
Up arrow icon