Class TrDBGrid_MS
Unit
rDBGrid_MS
Declaration
type TrDBGrid_MS = class(TrDBGrid)
Description
enhanced TrDBGrid component which provides multiselect function by click on fixed column with definable colors
Hierarchy
Overview
Methods
Properties
Description
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; var DataImageDef: TDataImageDef; ActiveRow, Highlight: Boolean); override; |
add bk color for selected records
|
Properties
|
property rBookmarks: TrBookmarkList read FrBookmarks; |
list of bookmarks to selected records
|
|
property MyBookmarks: TrBookmarkList read FrBookmarks; |
list of bookmarks to selected records - compability only
|
|
property UseMultiSelect: Boolean read FUseMultiSelect write FUseMultiSelect; |
indicates and set/reset multiselect function in runtime
|
|
property SingleSelect: Boolean read FSingleSelect write FSingleSelect; |
indicates and set/reset single select function in runtime
|
|
property FixColPopup: TPopupMenu read FFixColPopup; |
Popup menu for fix column
|
|
property SelectByClickOnRow: Boolean read FSelectByClickOnRow write FSelectByClickOnRow default false; |
define whether selection is done by click to any cell
|
|
property DeselectAllByClickOnRow: Boolean read FDeselectAllByClickOnRow write FDeselectAllByClickOnRow default true; |
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 ShowMultiselectPopup: Boolean read FShowMultiselectPopup write FShowMultiselectPopup default true; |
define whether popup for fixed column is shown
|
|
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 OnSelectionChanged: TNotifyEvent read FOnSelectionChanged write FOnSelectionChanged; |
event is called after selection or deselection of records
|
|
property OnCanDeleteSelected: TCanDeleteSelected read FOnCanDeleteSelected write FOnCanDeleteSelected; |
event is called before showing of fix column popup menu to obtain possibility to delete selected records
|
Generated by PasDoc 0.15.0.
|