ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.EditDropDown Property

Gets or sets a value indicating whether editing will take place in a popup window or within cell boundaries.

[Visual Basic]

Public Property EditDropDown As Boolean

[C#]

public bool EditDropDown {get;set;}

[Delphi]

public property EditDropDown: Boolean read get_EditDropDown write set_EditDropDown;

Remarks

If True (the default), an edit window will pop up when the user attempts to edit a cell whose contents cannot be displayed completely within the confines of the current cell's boundaries. Unlike the built-in combo box, the drop-down edit window will only extend to the bottom of the grid.

If False, editing will be confined to the current cell's boundaries.

The drop-down edit window behaves just like a standard multiple-line TextBox control in Visual Studio. The SelectionLength, SelectionStart, and SelectedText properties are still available, and the arrow keys can be used to navigate within the edit window.

Note: If the user tries to edit the last row in the grid, the drop-down edit window will not be displayed and the user will have to edit within the current cell's boundaries.

The EditDropDown property only applies when the floating editor marquee (MarqueeStyle is set to FloatingEditor) is not in effect.

Example

The following code confines editing to the current cell's boundaries:

·      Visual Basic

       Me.C1TrueDBGrid1.EditDropDown = False

·      C#

       this.c1TrueDBGrid1.EditDropDown = false;

·      Delphi

       Self.C1TrueDBGrid1.EditDropDown := False;

See Also

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


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