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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

54867 Jan 18,2007 04:55 PM Jan 18,2007 05:17 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 18, 2007 04:55 PM

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.

Administrator [Syncfusion]
Replied On January 18, 2007 05:10 PM

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.

Administrator [Syncfusion]
Replied On January 18, 2007 05:17 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;