ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.RowHeight Property

Gets or sets the height of grid rows.

[Visual Basic]

Public Property RowHeight As Integer

[C#]

public int RowHeight {get;set;}

[Delphi]

public property RowHeight: Int32 read get_RowHeight write set_RowHeight;

Remarks

A setting of 0 causes the grid to readjust its display so that each row occupies a single line of text in the current font.

If the control's AllowRowSizing property is set to IndividualRows, then the user can adjust the RowHeight property at run time by dragging the row divider between any pair of record selectors.

Note: Increasing the RowHeight property does not wrap cell text at column boundaries unless the column Style's WrapText property is True.

Example

The following code sets the row height so that exactly two lines of text are shown in each row:

·      Visual Basic

       Me.C1TrueDBGrid1.RowHeight = Me.C1TrueDBGrid1.RowHeight * 2

·      C#

       this.c1TrueDBGrid1.RowHeight = this.c1TrueDBGrid1.RowHeight * 2;

·      Delphi

       Self.C1TrueDBGrid1.RowHeight := Self.C1TrueDBGrid1.RowHeight * 2;

See Also

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


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