ComboBoxCell CreateComboBoxCellHiddenDropDownButton()
{
ComboBoxCell comboBoxCell = new ComboBoxCell();
comboBoxCell.DropDownStyle = MultiRowComboBoxStyle.DropDown;
// Hide drop down button when non edit status.
comboBoxCell.ShowDropDownButton = CellButtonVisibility.NotShown;
comboBoxCell.Items.AddRange("Item1", "Item2");
return comboBoxCell;
}
Private Function CreateComboBoxCellHiddenDropDownButton() As ComboBoxCell
Dim comboBoxCell As New ComboBoxCell()
comboBoxCell.DropDownStyle = MultiRowComboBoxStyle.DropDown
' Hide drop down button when non edit status.
comboBoxCell.ShowDropDownButton = CellButtonVisibility.NotShown
comboBoxCell.Items.AddRange("Item1", "Item2")
Return comboBoxCell
End Function