private void Form1_Load(object sender, EventArgs e)
{
GcComboBoxCell gcComboBoxCell1 = new GcComboBoxCell();
gcComboBoxCell1.DropDownStyle = MultiRowComboBoxStyle.DropDown;
gcComboBoxCell1.Items.AddRange(new string[] { "One", "Two", "Three" });
//In edit mode, hit the F6 to clear the content.
gcComboBoxCell1.ShortcutKeys.Add(Keys.F6, "ShortcutClear");
Template template1 = Template.CreateGridTemplate(new Cell[] { gcComboBoxCell1, gcComboBoxCell1.Clone() as Cell }, 160,
AutoGenerateGridTemplateStyles.ColumnHeader | AutoGenerateGridTemplateStyles.RowHeaderAutoNumber);
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim gcComboBoxCell1 As New GcComboBoxCell()
gcComboBoxCell1.DropDownStyle = MultiRowComboBoxStyle.DropDown
gcComboBoxCell1.Items.AddRange(New String() {"One", "Two", "Three"})
'In edit mode, hit the F6 to clear the content.
gcComboBoxCell1.ShortcutKeys.Add(Keys.F6, "ShortcutClear")
Dim template1 As Template = Template.CreateGridTemplate(New Cell() {gcComboBoxCell1, TryCast(gcComboBoxCell1.Clone(), Cell)}, 160, AutoGenerateGridTemplateStyles.ColumnHeader Or AutoGenerateGridTemplateStyles.RowHeaderAutoNumber)
gcMultiRow1.Template = template1
gcMultiRow1.RowCount = 3
End Sub