Hi Supriya,
Thank you for using Syncfusion products.
If
you want to hide or show the child columns when pressing buttons, you need to
use VisibleColumns property
of TableDescriptor of child table. Please
make use of below code and attached sample,
Code
Snippet:
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim childTableDescriptor As GridTableDescriptor = Me.gridGroupingControl1.GetTableDescriptor("MyChildTable")
'Specify your child table name
childTableDescriptor.VisibleColumns.Remove("Name")
End Sub
Private Sub button2_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim childTableDescriptor As GridTableDescriptor = Me.gridGroupingControl1.GetTableDescriptor("MyChildTable")
'Specify your child table name
childTableDescriptor.VisibleColumns.Add("Name")
End Sub
Please let me know if you have any concerns.
Regards,
Neelakandan
Attachment:
Sample_Hide_Show_Columns_5c5f716.zip