ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.CurrentCellVisible Property

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 C1TrueDBGrid.Bookmark and C1TrueDBGrid.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. 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, 3) is brought into view in the second split:

·      Visual Basic

       Me.C1TrueDBGrid1.Row = 10

       Me.C1TrueDBGrid1.Col = 3

       Me.C1TrueDBGrid1.Splits(1).CurrentCellVisible = True

·      C#

       this.c1TrueDBGrid1.Row = 10;

       this.c1TrueDBGrid1.Col = 3;

       this.c1TrueDBGrid1.Splits[1].CurrentCellVisible = true;

·      Delphi

       Self.C1TrueDBGrid1.Row := 10;

       Self.C1TrueDBGrid1.Col := 3;

       Self.C1TrueDBGrid1.Splits[1].CurrentCellVisible := True;

See Also

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


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