ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

ViewRow.Height Property

Gets or sets the height of a row.

[Visual Basic]

Public Property Height As Integer

[C#]

public int Height {get;set;}

[Delphi]

public property Height: Int32 read get_Height write set_Height;

Example

The following code sets Height property of the second row to 25:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.IndividualRows

       Me.C1TrueDBGrid1.Splits(0).Rows(1).Height = 25

·      C#

       this.c1TrueDBGrid1.Splits[0].AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.IndividualRows;

       this.c1TrueDBGrid1.Splits[0].Rows[1].Height := 25;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].AllowRowSizing := C1.Win.C1TrueDBGrid.RowSizingEnum.IndividualRows;

       Self.C1TrueDBGrid1.Splits[0].Rows[1].Height := 25;

For an example demonstrating the Height property, see Setting Multiple Height Values for Rows.

See Also

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


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