Grid Works home page

Overview

Components
TgwGrid

Classes
TgwGridObject
TgwCell
TgwRow
TgwColumn

Additional Information
Grid Options
HTML Reference
Tips & Tricks

Feedback
Report a bug with this manual

How do you rate this manual?
Great
OK
Poor

Comments


Best viewed with
Microsoft Internet Explorer
TgwRow

Unit: gwGrid

Ancestor: TgwGridObject

Properties
Height, Cell, Stretch, Y, Index, Sizing, Moving,

Methods
Assign,



Properties
Height

property Height : integer;

Description Use Height to set the height of the row.

Default A row's default height is determined by the grid's DefaultRowHeight property

See also TgwCustomGrid

Example Set height of row[2] to 20 pixels

Grid.Row[2].Height := 20;

Cell

property Cell[Column : Integer]: TCell;

Description Use Cell to reference the Cell in column Column on this row.

Example Set text of cell[3] to 'Hello' for row[0]

Grid.Row[0].Cell[3].Text := 'Hello';

Stretch

property Stretch : boolean;

Description Use Stretch to specify whether the row's height will automatically stretch so that there is no gap at the bottom of the grid.

'Stretchy' rows will be resized whenever the grid is resized.


Default false

Example Make row[0] stretch

Grid.Row[0].Stretch := true;

Y

property Y : integer; Read only


Description Use Y to determine the vertical position of the row.


Index

property Index : integer;

Description Use Index to determine the row index of the row or to move the row to a new position.

The first row has an index of 0 and the last row has an index of Grid.RowCount - 1.


Example Swap the first and second rows

Grid.Row[0].Index := 1;

Example Move the third row (row[2]) to the top of the grid

Grid.Row[2].Index := 0;

Sizing

property Sizing : boolean;

Description Use Sizing to specify whether the user is allowed to resize the row.

The prevent the user from sizing the row set Sizing to false.


Default true

See also Moving

Example Prevent user from sizing row[0]

Grid.Row[0].Sizing := false;

Moving

property Moving : boolean;

Description Use Moving to specify whether the user is allowed to move the row.

The prevent the user from moving the row set Moving to false.


Default true

See also Sizing

Example Prevent user from moving row[0]

Grid.Row[0].Moving := false;


Methods
Assign

procedure Assign(ARow : TRow; Ignore : TInheritOptions); virtual;

Description Call Assign to assign one row to another.

Any properties specified by the Ignore parameter with not be assigned.


Example Assign row[2] to row[3] but do not assign any Font properties

Grid.Row[3].Assign(Grid.Row[2],
                   [ptFontName, ptFontBold,
                   ptFontItalic, ptFontUnderline,
                   ptFontStrikeout, ptFontSize]);



Copyright © 1998-2007 Innova Software ALL RIGHTS RESERVED
All trademarks are the property of their respective owners.
Webmaster webmaster@innovasoftware.com