Articles in this section

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

 

Custom control


In order to add custom control to a column of the WinForms 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

 The screenshot below illustrates the addition of a custom control to a column in the GridGroupingControl.

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)
Access denied
Access denied