
Best viewed with
|
|
Unit: gwGrid
Ancestor: TgwGridObject
Properties
Field,
Width,
Cell,
Stretch,
X,
Index,
Sizing,
Moving,
Methods
Assign,
 |
|
Field
|
|
|
property Field : string;
|
|
|
Description
|
Use Field to specify the underlying database field that
is attached to this column.
|
|
|
This property is only used with data grids (TgwDataGrid)
|
 |
|
Width
|
|
|
property Width : integer;
|
|
|
Description
|
Use Width to set the width of the column.
|
|
|
Default
|
A column's default width is determined by the grid's
DefaultColWidth property
|
|
|
See also
|
TgwCustomGrid
|
|
|
|
Set width of column[2] to 60 pixels
Grid.Column[2].Width := 60;
|
 |
|
Cell
|
|
|
property Cell[Row : Integer]: TCell;
|
|
|
Description
|
Use Cell to reference the Cell in row Row
on this column.
|
|
|
|
Set text of cell[3] to 'Hello' for column[0]
Grid.Column[0].Cell[3].Text := 'Hello';
|
 |
|
Stretch
|
|
|
property Stretch : boolean;
|
|
|
Description
|
Use Stretch to specify whether the column's width will
automatically stretch so that there is no gap at
the right hand side of the grid.
'Stretchy' columns will be resized whenever the grid is resized.
|
|
|
Default
|
false
|
|
|
|
Make column[0] stretch
Grid.Column[0].Stretch := true;
|
 |
|
X
|
|
|
property X : integer;
Read only
|
|
|
Description
|
Use X to determine the horizontal position of the column.
|
 |
|
Index
|
 |
|
Sizing
|
|
|
property Sizing : boolean;
|
|
|
Description
|
Use Sizing to specify whether the user is allowed to
resize the column.
The prevent the user from sizing the column set Sizing to false.
|
|
|
Default
|
true
|
|
|
See also
|
Moving
|
|
|
|
Prevent user from sizing column[0]
Grid.Column[0].Sizing := false;
|
 |
|
Moving
|
|
|
property Moving : boolean;
|
|
|
Description
|
Use Moving to specify whether the user is allowed to
move the column.
The prevent the user from moving the column set Moving to false.
|
|
|
Default
|
true
|
|
|
See also
|
Sizing
|
|
|
|
Prevent user from moving column[0]
Grid.Column[0].Moving := false;
|
 |
|
Assign
|
|
|
procedure Assign(AColumn : TColumn; Ignore : TInheritOptions); virtual;
|
|
|
Description
|
Call Assign to assign one Column to another.
Any properties specified by the Ignore parameter with not be assigned.
|
|
|
|
Assign Column[2] to Column[3] but do not assign any Font properties
Grid.Column[3].Assign(Grid.Column[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
|