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

Need to set fixed row and column size in a grid control.

Can you tell me what property I need to set so that the user cannot resize the row or column in a grid control. Thanks.

2 Replies

AD Administrator Syncfusion Team January 18, 2007 10:10 PM UTC

I also need to know how to keep a grid size fixed as well. Thanks.

>Can you tell me what property I need to set so that the user cannot resize the row or column in a grid control. Thanks.


AD Administrator Syncfusion Team January 18, 2007 10:17 PM UTC

Hi Pooja,

If you dont want this, then handle the ResizingColumns event of the grid and set e.Cancel to true. This will help you.

//Form load..
this.gridControl1.ResizingColumns += new GridResizingColumnsEventHandler(gridControl1_ResizingColumns);

private void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
e.Cancel = true;
}

Thanks for using Syncfusion Products.
Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon