Articles in this section
Category / Section

How to add custom control to a column in the WinForms GridGroupingControl?

1 min read

 

Custom control

In order to add custom control to a column of the GridGroupingControl, you can set the CellType property as Control and value of that control can be set to HTMLUIControl.

C#

Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl htmluiControl1=new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl();
//Set the column cell type as the html control.
GridColumnDescriptor column1 = this.gridGroupingControl1.TableDescriptor.GetColumnDescriptor("Column");//Specify your Column name
column1.Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Control;
column1.Appearance.AnyRecordFieldCell.Control = htmluiControl1;

VB

Dim htmluiControl1 As New Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl()
'Set the column cell type as the html control.
Dim column1 As GridColumnDescriptor = Me.gridGroupingControl1.TableDescriptor.GetColumnDescriptor("Column")
'Specify your Column name
column1.Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Control
column1.Appearance.AnyRecordFieldCell.Control = htmluiControl1

 

Add custom control in column

Samples:

C#: CustomControl_CS

VB: CustomControl_VB

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