Description | Hierarchy | Fields | Methods | Properties |
type TRbwDataGrid = class(TCustomRBWDataGrid)
TRbwDataGrid is a TStringGrid that restricts the data displayed in a cell based on the Format of the TRbwColumn associated with the cell. Cells can also display a combobox or button in a cell
.
![]() |
FColumns: TRbwDataGridColumns; |
![]() |
FCurRow: integer; |
![]() |
FFixedCols: integer; |
![]() |
procedure AdjustColWidths(const ACol: integer); |
![]() |
procedure AdjustRowHeights(const ARow: integer); |
![]() |
procedure FillCaptionList(CellCaption: string; const CaptionList: TStringList; Width: integer); |
![]() |
function RequiredCellHeight(const ACol, ARow: integer): integer; |
![]() |
function RequiredCellWidth(const ACol, ARow: integer): integer; |
![]() |
procedure SetCells(ACol, ARow: Integer; const Value: string); |
![]() |
procedure SetColumns(const Value: TRbwDataGridColumns); |
![]() |
function CollectionItem(const ACol, ARow: Longint): TCustomRowOrColumn; override; |
![]() |
procedure ColumnMoved(FromIndex, ToIndex: Longint); override; |
![]() |
function CreateColumns: TRbwDataGridColumns; dynamic; |
![]() |
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override; |
![]() |
function GetFixedCols: integer; virtual; |
![]() |
procedure Loaded; override; |
![]() |
procedure SetEditText(ACol, ARow: Longint; const Value: WideString); override; |
![]() |
procedure SetFixedCols(const Value: integer); virtual; |
![]() |
procedure SizeChanged(OldColCount, OldRowCount: Longint); override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
function DistributeText(const ACol, ARow: integer; CellContents: string): boolean; |
![]() |
destructor Destroy; override; |
![]() |
procedure InsertColumn(ACol: Integer); override; |
![]() |
property Cells[ACol, ARow: Integer]: string read GetCells write SetCells; |
![]() |
property Columns: TRbwDataGridColumns read FColumns write SetColumns; |
![]() |
property FixedCols: integer read GetFixedCols write SetFixedCols; |
![]() |
FColumns: TRbwDataGridColumns; |
See Columns. |
![]() |
FCurRow: integer; |
In SetEditText FCurRow is set to Row. FCurRow is then used to adjust RowHeight. |
![]() |
FFixedCols: integer; |
See FixedCols. |
![]() |
procedure AdjustColWidths(const ACol: integer); |
If AutoAdjustColWidths is true, |
![]() |
procedure AdjustRowHeights(const ARow: integer); |
If AutoAdjustRowHeights is true, |
![]() |
function RequiredCellHeight(const ACol, ARow: integer): integer; |
|
![]() |
function RequiredCellWidth(const ACol, ARow: integer): integer; |
|
![]() |
procedure SetCells(ACol, ARow: Integer; const Value: string); |
See Cells. |
![]() |
procedure SetColumns(const Value: TRbwDataGridColumns); |
See Columns. |
![]() |
function CollectionItem(const ACol, ARow: Longint): TCustomRowOrColumn; override; |
|
![]() |
procedure ColumnMoved(FromIndex, ToIndex: Longint); override; |
|
![]() |
function CreateColumns: TRbwDataGridColumns; dynamic; |
|
![]() |
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override; |
if WordWrapCaptions or WordWrapCells is true, |
![]() |
function GetFixedCols: integer; virtual; |
See FixedCols. |
![]() |
procedure Loaded; override; |
Set the FixedCols and Options when the grid is loaded. |
![]() |
procedure SetEditText(ACol, ARow: Longint; const Value: WideString); override; |
|
![]() |
procedure SetFixedCols(const Value: integer); virtual; |
See FixedCols. |
![]() |
procedure SizeChanged(OldColCount, OldRowCount: Longint); override; |
|
![]() |
constructor Create(AOwner: TComponent); override; |
initializes grid. |
![]() |
destructor Destroy; override; |
|
![]() |
procedure InsertColumn(ACol: Integer); override; |
Use |
![]() |
property Cells[ACol, ARow: Integer]: string read GetCells write SetCells; |
|
![]() |
property Columns: TRbwDataGridColumns read FColumns write SetColumns; |
|
![]() |
property FixedCols: integer read GetFixedCols write SetFixedCols; |
|