)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the row height of GroupDropArea in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: January 3, 2016 |
Last Revised Date: December 31, 2019

Row height

You can set the row height of the GroupDropArea, it can be achieved by handling the QueryRowHeight event of the GroupDropArea. For better appearance look, the height of the GroupDropArea is also to be increased based on the row height value.

C#

//Setting the Height for GroupDropAreaPanel and GroupDropArea in Form_Load. 
this.gridGroupingControl1.GroupDropPanel.Height = 40;
this.gridGroupingControl1.GridGroupDropArea.Height = 35;
 
//Hook the event in Form_Load to change the row height of the GroupDropArea.
this.gridGroupingControl1.GridGroupDropArea.Model.QueryRowHeight += Model_QueryRowHeight;
 
void Model_QueryRowHeight(object sender, GridRowColSizeEventArgs e)
{
    //Check for the row index 
    if (e.Index == 2)
    {
        e.Size = 30;
        e.Handled = true;
    }
}

 

VB

'Setting the Height for GroupDropAreaPanel and GroupDropArea in Form_Load. 
Me.gridGroupingControl1.GroupDropPanel.Height = 40
Me.gridGroupingControl1.GridGroupDropArea.Height = 35
'Hook the event in Form_Load to change the row height of the GroupDropArea.
AddHandler Me.gridGroupingControl1.GridGroupDropArea.Model.QueryRowHeight, AddressOf Model_QueryRowHeight
 
Private Sub Model_QueryRowHeight(ByVal sender As Object, ByVal e As GridRowColSizeEventArgs)
  'Check for the row index 
  If e.Index = 2 Then
    e.Size = 30
    e.Handled = True
  End If
End Sub

 

ScreenShot

GroupDropArea height has been increased

Figure1: GroupDropArea height has been increased

Samples:

C#: GroupDropAreaRowHeight_CS

VB: GroupDropAreaRowHeight_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon