Class TrDBGrid_MS
Unit
rDBGrid_MS
Declaration
type TrDBGrid_MS = class(TrDBGrid)
Description
enhanced rDBGrid with mutiselect functions
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
 |
MyBookmarks: TMyBkList; |
list of bookmarks to selected records
|
Methods
 |
function IsActiveSelected: boolean; |
return if active record is selected
|
 |
procedure SelectActive; |
select active record
|
 |
procedure DeSelectActive; |
deselect active record
|
 |
procedure SelectAll; |
select all records
|
 |
procedure DeSelectAll; |
deselect all records
|
 |
procedure ReverseSelection; |
reverse selection - select unselected and unselect selected records
|
 |
function DeleteSelected: boolean; |
delete all selected records, if no record is selected, property DeleteOnlySelected is used and active record is delete or nothing is done
|
 |
function GetSelectedRecCount: integer; |
returns count of selected records
|
 |
function GetScopeRecCount(RecordScope: TRecordScope): integer; |
returns count of selected records according RecordScope
|
 |
procedure ProcScopeRecords(RecordScope: TRecordScope; CallBackProc: TNotifyEvent); |
proccess all records according RecordScope and call CallBackProc for each of them
|
 |
procedure GetCellParams(Field: TField; AFont: TFont; var Background: TColor; ActiveRow, Highlight: boolean); override; |
add bk color for selected records
|
Properties
 |
property UseMultiSelect: boolean read FUseMultiSelect write FUseMultiSelect; |
indicates and set/reset multiselect function in runtime
|
 |
property SelectByClickOnRow: boolean read FSelectByClickOnRow write FSelectByClickOnRow default false; |
define whether selection is done by click to any cell
|
 |
property SelectedRowsBkColor: TColor read FSelectedRowsBkColor write FSelectedRowsBkColor default clHighlight; |
define background color of selected row
|
 |
property SelectedRowsFontColor: TColor read FSelectedRowsFontColor write FSelectedRowsFontColor default clHighlightText; |
define font color of selected row
|
 |
property SelectingConfirmRecCount: integer read FSelectingConfirmRecCount write FSelectingConfirmRecCount default 1000; |
define count of selected records for action confirmation to aviod freeze for time consumin actions
|
 |
property DeleteOnlySelected: boolean read FDeleteOnlySelected write FDeleteOnlySelected default false; |
define if active record is deleted if nothing is selected
|
 |
property OnDeleteSelected: TNotifyEvent read FOnDeleteSelected write FOnDeleteSelected; |
event is called for deletion of records, if not defined, standard delete method is used
|
 |
property OnSelectingRecords: TNotifyEvent read FOnSelectingRecords write FOnSelectingRecords; |
event is called during selection of records for each record
|
 |
property OnCanDeleteSelected: TCanDeleteSelected read FOnCanDeleteSelected write FOnCanDeleteSelected; |
|
Generated by PasDoc 0.13.0 on 2016-02-19 08:14:10
|