- Online Barcode Generator
- How To
- Buy Now
C# Grid ComboBox Column
The Kettic Grid ComboBox Column is able to show predefined candidate text values in a drop down list and offers a lookup into some static values. There are three key properties available to users using the Grid Combobox Column, the Data Source property, DisplayMember property, ValueMember property, FilterMode property, and DisplayMemberSort property. The Grid ComboBox Column descends all features of the Kettic Data Grid Column parent class.
Properties of Grid ComboBox Column
Data Binding Grid ComboBox Column in C#
Binding ComboBox to Array of Strings
To bind the grid combobox to column with array of strings in the data source, we just use the DisplayMember and ValueMember value in the same way and set the array strings as a datasource to the combobox column.
Binding ComboBox to Collection of Custom Object
Moreover, we can bind the combobox to a collection of custom object. Normally, we need to set data source, which should be separate data source for each of combobox column, filled with some data and disable the auto generate value. Then create and map the data base columns using the grid control. We will set the string array as the data source for the first combox column and set a binding list for a second combo column.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls