ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.CurrentCellVisible Property

Gets or sets a value indicating the visibility of the current cell.

[Visual Basic]

Public Property CurrentCellVisible As Boolean

[C#]

public bool CurrentCellVisible {get;set;}

[Delphi]

public property CurrentCellVisible: Boolean read get_CurrentCellVisible write set_CurrentCellVisible;

Remarks

This property returns True if the current cell (indicated by the Bookmark and Col properties) is visible within the displayed area of a grid or split. It returns False if the cell is not visible.

Setting the CurrentCellVisible property to True causes the grid to scroll so that the current cell is brought into view. If a grid contains multiple splits, then the current cell becomes visible in each split.

In all cases, setting this property to False is meaningless and is ignored.

Example

The following code scrolls the grid so that the cell (10, 0) is brought into view:

·      Visual Basic

       Me.C1TrueDBDropdown1.Bookmark = 10

       Me.C1TrueDBDropdown1.Col = 0

       Me.C1TrueDBDropdown1.CurrentCellVisible = True

·      C#

       this.c1TrueDBDropdown1.Bookmark = 10;

       this.c1TrueDBDropdown1.Col = 0;

       this.c1TrueDBDropdown1.CurrentCellVisible = true;

·      Delphi

       Self.C1TrueDBDropdown1.Bookmark := 10;

       Self.C1TrueDBDropdown1.Col := 0;

       Self.C1TrueDBDropdown1.CurrentCellVisible := True;

See Also

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


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