)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WinForms |
Control: GridGroupingControl |
Published Date: May 10, 2016 |
Last Revised Date: February 12, 2020

 

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

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon