Articles in this section
Category / Section

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

1 min read

Row height


You can set the row height of the 
GroupDropArea, it can be achieved by handling the QueryRowHeight event of the GroupDropArea in WinForms GridGroupingControl. For better appearance, the height of the GroupDropArea should 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 

GroupDropArea Row height Customization has shown in the screenshot below

GroupDropArea height has been increased

Figure1: GroupDropArea height has been increased

Samples:

C#: GroupDropAreaRowHeight_CS

VB: GroupDropAreaRowHeight_VB

 

Conclusion


I hope you enjoyed learning about how to change the row height of GroupDropArea in GridGroupingControl.


You can refer to our  WinForms GridGroupingControl feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to create and manipulate data.


For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.


If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied