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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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.

Thanks,
Raul


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,
Haneef

Raul
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?".
DGBGPreventRowHeight.zip

Best 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.

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

;