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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





59827 Apr 23,2007 06:21 PM UTC Apr 23,2007 07:24 PM UTC WinForms 3
Tags: GridControl
Asked On April 23, 2007 06:21 PM UTC


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 06:53 PM UTC

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 06:59 PM UTC

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 07:24 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon