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

GGC mimimum row height

How can I set the mimimum row height for all rows?

3 Replies

AD Administrator Syncfusion Team August 9, 2006 05:52 AM UTC

Hi Rich,

Please use the below property setting,
this.gridGroupingControl1.Table.DefaultRecordRowHeight = 25;

FYI, if you would like to have individualized rowheights in GGC, custom engine has to be used as in the Syncfusion Browser sample ResizableRows.
C:\Program Files\Syncfusion\Essential Studio\4.2\Windows\Grid.Grouping.Windows\Samples\ResizableRows

Thanks,
Rajagopal


AD Administrator Syncfusion Team August 9, 2006 12:49 PM UTC

Hi Rajagopal,

I want to be able to set a Minimum row height, not the default. The minimum would mean that the user could not re-size the row smaller than that minimum value. This is to prevent the user from accidentally resizing a row to the point where it is no longer visible.


AD Administrator Syncfusion Team August 10, 2006 04:56 AM UTC

Hi Rich,

Attached sample demonstrates the feature of having individualized rowheights by using the custom engine, so that user can able to resize every single row in GGC. This implements IGridRowHeight interface and its routines for getting,setting and preventing row height for elements. To have a minimum rowheight for all the rows, that should not be resized below, the TableControlResizingRows event can be handled for this. Here is the code snippet.

private void gridGroupingControl1_TableControlResizingRows(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlResizingRowsEventArgs e)
{
if(e.Inner.Rows.Top > 2)
{
if(e.Inner.Reason == GridResizeCellsReason.MouseMove && e.Inner.Height < 18)
e.Inner.Cancel = true;
}
}
Here is the sample
GGC_RowHeight.zip

Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon