ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.AutoDropDown Property

Gets or sets a value indicating whether the drop-down opens automatically when a key is typed.

[Visual Basic]

Public Property AutoDropDown As Boolean

[C#]

public bool AutoDropDown {get;set;}

[Delphi]

public property AutoDropDown: Boolean read get_AutoDropDown write set_AutoDropDown;

Remarks

If True, the drop-down control automatically opens when the user types a character into a cell.

If False (the default), the user can only open the drop-down control by clicking the in-cell button or by pressing ALT+DOWN ARROW when a cell within the column has focus.

Example

The following code uses the AutoDropDown property to automatically open the drop-down when the user types a character into the cell:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("ProductID").AutoDropDown = True

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["ProductID"].AutoDropDown = true;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns['ProductID'].AutoDropDown := True;

See Also

C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.