BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
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
Hi Supriya,
Thank you for your update.
We regret to let you know that we could not able to reproduce your scenario. The child columns will be shown if you use Add property of VisibleColumns. Please refer the below code and sample video. If you have still an issue, please provide us simple sample or modify the sample which has been provided in previous update. It would be more helpful for us to provide better solution as soon as possible.
Code Snippet:
Dim childTableDescriptor As GridTableDescriptor = Me.gridGroupingControl1.GetTableDescriptor("MyChildTable")
childTableDescriptor.VisibleColumns.Add("Name") ‘Specify your needed child table column name to show
Please let me know if you have any concerns.
Regards,
Neelakandan