Contents
- Index
- Previous
- Next
OnStartSort event
Applies to
TProfGrid component
Declaration
property OnStartSort: TProfGridPermissionEvent;
Description
Occurs before the grid starts sorting.
The event handler may set the Allow parameter to False to cancel sort.
Example
procedure TForm1.ProfGrid1StartSort(Sender: TProfGrid; var Allow: Boolean);
begin
Allow :=
MessageDlg('Are you sure you want to sort the grid?', mtConfirmation,
[mbYes, mbNo], 0) = mrYes
end;