Gets or sets a value indicating whether the drop-down auto fills the edit portion with the matched entry.
[Visual Basic]
Public Property AutoComplete As Boolean
[C#]
public bool AutoComplete {get;set;}
[Delphi]
public property AutoComplete: Boolean read get_AutoComplete write set_AutoComplete;
Remarks
If True, when the user enters one or more characters that match a value in the drop-down list, the entire matching string is copied to the text portion of the control. The caret is positioned after the last character typed, and the remainder of the string is selected.
If False (the default), the automatic completion does not occur, and the text portion of the control contains only the characters entered by the user.
Example
The following code uses the AutoComplete property to automatically fill the edit portion with the matched entry when the column contains a drop-down:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns("CustomerID").AutoComplete = True
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns["CustomerID"].AutoComplete = true;
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns['CustomerID'].AutoComplete := True;
See Also
C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |