Articles in this section

How to add a column to the GridGroupingControl programmatically?

 

The following code snippet shows how you can programatically add a column to the Grid

C#

this.GridGroupingControl1.TableDescriptor.Columns.Add("NewColumn");

VB

Me.GridGroupingControl1.TableDescriptor.Columns.Add("NewColumn")

The newly added column should be added to the VisibleColumns collection of the corresponding TableDescriptor to make it visible.

C#

this.GridGroupingControl1.TableDescriptor.VisibleColumns.Add("NewColumn");

VB

Me.GridGroupingControl1.TableDescriptor.VisibleColumns.Add("NewColumn")

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