Gets or sets a value indicating whether the drop-down acts like a drop-down list (text portion is not editable).
[Visual Basic]
Public Property DropDownList As Boolean
[C#]
public bool DropDownList {get;set;}
[Delphi]
public property DropDownList: Boolean read get_DropDownList write set_DropDownList;
Remarks
If True, the drop-down control acts like a list box. That is, the user cannot type directly into the current cell, but can select a new value from the drop-down control.
If False (the default), the drop-down control acts like a combo box. That is, the user can either type directly into the current cell or select a new value from the drop-down control.
Example
The following code uses the DropDownList property make the drop-down act like a list box:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).DropDownList = True
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns[0].DropDownList = true;
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].DropDownList := True;
See Also
C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |