Articles in this section

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

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’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data.

 

For current customers, you can check out our WinForms 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 WinForms GridGroupingControl and other WinForms components.

 

If you have any queries or require clarifications, please let us know in comments 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)
Access denied
Access denied