Spread Windows Forms 9.0 Product Documentation
DropDownWhenStartEditing Property
Example 


Gets or sets whether to display the combo box list when pressing the enter key.
Syntax
'Declaration
 
Public Property DropDownWhenStartEditing As Boolean
'Usage
 
Dim instance As ComboBoxCellType
Dim value As Boolean
 
instance.DropDownWhenStartEditing = value
 
value = instance.DropDownWhenStartEditing
public bool DropDownWhenStartEditing {get; set;}
Remarks
This property only has an effect if the Editable property is false.
Example
This example sets the DropDownWhenStartEditing 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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.