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

GGC mimimum row height

Thread ID:

Created:

Updated:

Platform:

Replies:

47589 Aug 8,2006 05:22 PM UTC Aug 10,2006 04:56 AM UTC WinForms 3
loading
Tags: GridControl
Rich
Asked On August 8, 2006 05:22 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On 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

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

;