ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.LeftCol Property

Gets or sets the zero-based index of the leftmost column in a grid or split.

[Visual Basic]

Public Property LeftCol As Integer

[C#]

public int LeftCol {get;set;}

[Delphi]

public property LeftCol: Int32 read get_LeftCol write set_LeftCol;

Remarks

For a C1TrueDBGrid control, setting the LeftCol property causes the grid to scroll so that the specified column becomes the leftmost column. If a grid contains multiple splits, then the leftmost column changes in each split.

Use the LeftCol property in code to scroll a grid or split horizontally. Use the FirstRow property to determine the bookmark of the first visible row in a grid or split.

Example

The following code sets the leftmost column to column 2:

·      Visual Basic

       Me.C1TrueDBGrid1.LeftCol = 2

·      C#

       this.c1TrueDBGrid1.LeftCol = 2;

·      Delphi

       Self.C1TrueDBGrid1.LeftCol := 2;

See Also

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


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