Gets or sets a value indicating the visibility of the current cell in a split.
[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 row 25 and column 2 are brought into view:
Me.C1TrueDBGrid1.Row = 25
Me.C1TrueDBGrid1.Col = 2
Me.C1TrueDBGrid1.CurrentCellVisible = True
· C#
this.c1TrueDBGrid1.Row = 25;
this.c1TrueDBGrid1.Col = 2;
this.c1TrueDBGrid1.CurrentCellVisible = true;
· Delphi
Self.C1TrueDBGrid1.Row := 25;
Self.C1TrueDBGrid1.Col := 2;
Self.C1TrueDBGrid1.CurrentCellVisible := True;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |