How to hide the row headers of the childtable in the WinForms GridGroupingControl?
Hide the row headers
The WinForms GridGroupingControl does not have direct support to hide the row
headers of the child tables. To hide the Row
Headers of the child table, there is a simple
solution.
Solution:
You can access the Child Table by using the GridTableModel. Then handle the QueryColWidth of the ChildTable and hide the RowHeader, that is Column zero, by setting the Size property to Zero.
//Gets the ChildTable Model in the Form_Load.
GridTableModel tbl = this.gridGroupingControl1.GetTableModel("ChildTable");
//Hooks the QueryColWidth event to change the width of the Child Table row header.
tbl.QueryColWidth += new GridRowColSizeEventHandler(tbl_QueryColWidth);
//Child Table QueryColWidth event Handler.
private void tbl_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
//Checks the col index == 0 to identify.
if(e.Index == 0)
{
//Sets the size of the RowHeader width to zero.
e.Size = 0;
e.Handled = true;
}
}'Gets the ChildTable Model in the Form_Load.
Private tbl As GridTableModel = Me.gridGroupingControl1.GetTableModel("ChildTable")
'Hooks the QueryColWidth event to change the width of the Child Table row header.
Private tbl.QueryColWidth += New GridRowColSizeEventHandler(AddressOf tbl_QueryColWidth)
'Child Table QueryColWidth event Handler.
Private Sub tbl_QueryColWidth(ByVal sender As Object, ByVal e As GridRowColSizeEventArgs)
'Checks the col index == 0 to identify.
If e.Index = 0 Then
'Sets the size of the RowHeader width to zero.
e.Size = 0
e.Handled = True
End If
End SubThe
screenshot below shows the hiding of row headers for child tables

Figure 1: RowHeader hidden in the ChildTable
Conclusion
I hope you enjoyed learning about how to hide the row headers of the childtable in the WinForms 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 forums, Direct-Trac, or feedback portal. We are always happy to assist you!