Spread Windows Forms 12.0 Product Documentation
StopEditingAfterDropDownItemSelected Property

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : StopEditingAfterDropDownItemSelected Property
Gets or sets whether to close the drop-down list and stop editing after pressing the enter key or clicking a combo box list item.
Public Property StopEditingAfterDropDownItemSelected As Boolean
Dim instance As ComboBoxCellType
Dim value As Boolean
instance.StopEditingAfterDropDownItemSelected = value
value = instance.StopEditingAfterDropDownItemSelected
public bool StopEditingAfterDropDownItemSelected {get; set;}
This example sets the StopEditingAfterDropDownItemSelected property.
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cb.Items = new string[] { "Item 1", "Item 2" };
cb.DropDownOptions = FarPoint.Win.DropDownOptions.Button;
cb.Editable = false;
cb.DropDownWhenStartEditing = true;
cb.DoubleClickTextToDropDown = true;
cb.StopEditingAfterDropDownItemSelected = true; 
fpSpread1.ActiveSheet.Cells[1, 1].CellType = cb;
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cb.Items = New String() {"Item 1", "Item 2"}
cb.DropDownOptions = FarPoint.Win.DropDownOptions.Button
cb.Editable = False
cb.DropDownWhenStartEditing = True
cb.DoubleClickTextToDropDown = True
cb.StopEditingAfterDropDownItemSelected = True
FpSpread1.ActiveSheet.Cells(1, 1).CellType = cb
See Also


ComboBoxCellType Class
ComboBoxCellType Members