How to Add and Format Unbound Columns in GridGrouping Control

3 Jan 20201 minute to read

The unbound columns can be added and formatted using the below code.

//Adds unbound column in GridGroupingControl.
this.gridGroupingControl1.TableDescriptor.UnboundFields.Add("UnboundColumn1");

//Formats the Unbound column.
this.gridGroupingControl1.TableDescriptor.Columns["UnboundColumn1"].Appearance.AnyRecordFieldCell.CellType = "CheckBox";
this.gridGroupingControl1.TableDescriptor.Columns["UnboundColumn1"].Appearance.AnyRecordFieldCell.BackColor = Color.LightSteelBlue;
'Adds an Unbound column in a  GridGroupingControl.
Me.gridGroupingControl1.TableDescriptor.UnboundFields.Add("UnboundColumn1")

'Formats an Unbound column in GridGroupingControl.
Me.gridGroupingControl1.TableDescriptor.Columns("UnboundColumn1").Appearance.AnyRecordFieldCell.CellType = "CheckBox"
Me.gridGroupingControl1.TableDescriptor.Columns("UnboundColumn1").Appearance.AnyRecordFieldCell.BackColor = Color.LightSteelBlue