ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.LinesPerRow Property

Gets or sets the number of subrows of the grid when the DataView property is set to MutlipleLinesFixed.

[Visual Basic]

Public Property LinesPerRow As Integer

[C#]

public int LinesPerRow {get;set;}

[Delphi]

public property LinesPerRow: Int32 read get_LinesPerRow write set_LinesPerRow;

Example

The following code sets two subrows for a multi-line grid:

·      Visual Basic

       Me.C1TrueDBGrid1.DataView = C1.Win.C1TrueDBGrid.DataViewEnum.MultipleLinesFixed;

       Me.C1TrueDBGrid1.LinesPerRow = 2;

·      C#

       this.c1TrueDBGrid1.DataView = C1.Win.C1TrueDBGrid.DataViewEnum.MultipleLinesFixed;

       this.c1TrueDBGrid1.LinesPerRow = 2;

·      Delphi

       Self.C1TrueDBGrid1.DataView := C1.Win.C1TrueDBGrid.DataViewEnum.MultipleLinesFixed;

       Self.C1TrueDBGrid1.LinesPerRow := 2;

See Also

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


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