Rosi ComponentsUnits Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers
|
Class TrDBMemoGrid
Unit
rDBMemoGrid
Declaration
type TrDBMemoGrid = class(TrStringGridEd)
Description
enhanced TrStringGridEd component which provides function for editing content of db memo field in grid form
Hierarchy
Overview
Methods
Properties
Description
Methods
|
procedure LoadFromField; |
reload values from database memo field to grid
|
|
procedure StoreToField; |
store values from grid to database memo field
|
|
function SetValue(Col, Row: Integer; const Value: string): boolean; |
set one value of grid, dataset has to be in editing mode
|
|
function GetValue(Col, Row: Integer): string; |
get one value of grid
|
|
function DeleteLine(Index: Integer): boolean; |
delete one line, dataset has to be in editing mode
|
|
function MoveLine(Index: Integer; Delta: Integer): boolean; |
move one line, dataset has to be in editing mode
|
|
function CopyTable(const Separator: string): string; |
copy whole table, result can be inserted to clipboard or to text
|
|
function InsertTable(const Values, Separator: string): boolean; |
insert whole table, values are separated by separator
|
|
function AppendTable(const Values, Separator: string): boolean; |
append whole table, values are separated by separator
|
|
procedure SelectRow(ARow: Integer; Selected: boolean); |
select or deselect one row
|
|
function IsRowSelected(ARow: Integer): boolean; |
indicate whether row is selected
|
|
function SelectedRowCount: Integer; |
returns count of selected rows
|
|
procedure SelectCol(ACol: Integer; Selected: boolean); |
select or deselect one column
|
|
function IsColSelected(ACol: Integer): boolean; |
indicate whether column is selected
|
|
function SelectedColCount: Integer; |
returns count of selected columns
|
|
procedure SelectOneCell(ARow, ACol: Integer; Selected: boolean); |
select or deselect one cell
|
|
function IsCellSelected(ARow, ACol: Integer): boolean; |
indicate whether cell is selected
|
|
function SelectedCellCount: Integer; |
returns count of selected cells
|
|
function GetSelection(const ValueSeparator, LineSeparator: string): string; |
returns content of selection
|
|
function GetActiveLine(const ValueSeparator: string): string; |
returns content of line
|
|
function SelectionExists: boolean; |
indicates whether selection exists
|
Properties
|
property DataField: string read GetDataField write SetDataField; |
|
|
property DataSource: TDataSource read GetDataSource write SetDataSource; |
|
|
property ReadOnly: boolean read FReadOnly write FReadOnly default false; |
defines whether data is in read only mode - no modification can be done
|
|
property DBEditLabel: TDBBoundLabel read FDBEditLabel; |
defines bounded label
|
|
property ColTitles: TStrings read FColTitles write SetColTitles; |
defines titles of columns
|
|
property ColSeparator: string read FColSeparator write SetColSeparator; |
defines separator for values in one row
|
|
property EditInfoChar: string read FEditInfoChar write FEditInfoChar; |
defines char in cell 0,0 if editing
|
|
property VisibleAll: boolean read FVisibleAll write SetVisibleAll; |
defines visibility of all component including bound label, used instead of property Visible
|
|
property ReadOnlyColor: TColor read FReadOnlyColor write FReadOnlyColor; |
defines color of memo when dataset is not editing
|
|
property MemoGridOpt: TMemoGridOpt read FMemoGridOpt write SetMemoGridOpt; |
defines showing of grid, memo or auto according data structure
|
|
property MemoGridSelections: TMemoGridSelections read FMemoGridSelections write FMemoGridSelections; |
defines what can be selected - rows, columns, cells
|
|
property OnMemoCheckFormat: TMemoCheckFormat read FMemoCheckFormat write FMemoCheckFormat; |
event for user defined check of data format
|
|
property SelectedColor: TColor read FSelectedColor write FSelectedColor; |
defines background color for selected cells
|
|
property NoNewLines: boolean read FNoNewLines write FNoNewLines; |
prohibit adding of new lines
|
|
property MemoGridOptsEx: TMemoGridOptsEx read FMemoGridOptsEx write FMemoGridOptsEx; |
set of extended options - enable deleting of rows if readonly
|
|
property RowFilterColumn: Integer read FRowFilterColumn write SetRowFilterColumn default 0; |
column index which is compared for filtered rows (filter is working only for ReadOnly memogrid)
|
|
property RowFilterValues: TStrings read FRowFilterValues write SetRowFilterValues; |
displayed values for filtered rows (filter is working only for ReadOnly memogrid)
|
Generated by PasDoc 0.15.0.
|