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.

Hw do I freeze or lock the height of a row in DGBG

Thread ID:





59827 Apr 23,2007 02:21 PM Apr 23,2007 03:24 PM Windows Forms 3
Tags: GridControl
Asked On April 23, 2007 02:21 PM


Hw do I freeze the height of a row in DGBG? Means I should not allow the user to increase the height of the row.


haneefm [Syncfusion]
Replied On April 23, 2007 02:53 PM

Hi Rahul,

One way you do this by handling the ResizingRows event of the grid and set e.Cancel to true. Here is a code snippet that show you "How to prevent the user from changing the row height in a grid?".

//Form load..
this.grid1.ResizingRows +=new GridResizingRowsEventHandler(grid1_ResizingRows);

private void grid1_ResizingRows(object sender, GridResizingRowsEventArgs e)
if(e.Rows.Bottom == 2)
e.Cancel = true;

Best regards,

Replied On April 23, 2007 02:59 PM

hey Haneef,

Thanks for yr quick reply, howvever the above code snippet is not working..I'am still able to resize rows height..

haneefm [Syncfusion]
Replied On April 23, 2007 03:24 PM

Hi Rahul,

Here is a minimal sample that shows you "How to prevent the user from changing the row height in a grid?".

Best regards,


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.