Skip to content

SyncfusionExamples/How-to-add-ComboBox-for-particular-column-in-WinForms-GridGroupingControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to add ComboBox for particular column in WinForms GridGroupingControl?

In order to have a combo box in a specified column in WinForms GridGroupingControl, the required column name should be assigned the cell type as ComboBox. This can be done by changing the column’s Appearance through the TableDescriptor property.

C#

// Specify the Column name to add the combo box.
gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.ComboBox;

StringCollection list = new StringCollection();
list.Add("Quartz");
list.Add("Ruby");
list.Add("Saphire");
list.Add("Emerald");
list.Add("Diamond");
list.Add("Graphite");

// Specify the required list to be displayed in the drop down.
gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.ChoiceList = list;

VB

' Specify the Column name to add the combo box.
gridGroupingControl1.TableDescriptor.Columns("Description").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.ComboBox

Dim list As New StringCollection()
list.Add("Quartz")
list.Add("Ruby")
list.Add("Saphire")
list.Add("Emerald")
list.Add("Diamond")
list.Add("Graphite")

' Specify the required list to be displayed in the drop down.
gridGroupingControl1.TableDescriptor.Columns("Description").Appearance.AnyRecordFieldCell.ChoiceList = list

The screenshot below shows the combobox column.

ComboBox for particular column

View sample in GitHub

About

This demo shows how to add ComboBox for particular column in WinForms GridGroupingControl

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •