IndicatorTitle
Less than 1 minute
TDataGridEh.IndicatorTitle
property IndicatorTitle: TDataGridIndicatorTitleEh;published
Use this property to customize the top left cell the grid.
TDataGridEh.IndicatorTitle Properties
The IndicatorTitle property is of type TDataGridIndicatorTitleEh and contains the following subproperties:
IndicatorTitle.IsClickShowGridMenu
property IsClickShowGridMenu: Boolean default True;Determines whether to show the dropdown menu when clicking on the top-left cell of the grid.
IndicatorTitle.IsShowDropDownSign
property IsShowDropDownSign: Boolean default True;Determines whether to display an icon indicating that clicking on a cell will display a drop-down window or menu.
TDataGridEh.IndicatorTitle Events
IndicatorTitle.OnMouseDown
property OnMouseDown: TDataGridIndicatorTitleMouseDownEventEh;TDataGridIndicatorTitleMouseDownEventEh = procedure(
Sender: TObject;
Params: TGridCellMouseButtonParamsEh) of object;The event is triggered when the mouse is clicked on a cell.
TDataGridEh.IndicatorTitle.OnMouseDown Demo
procedure TFormDataGridEventsTester.DataGridEh1IndicatorTitleMouseDown(
Sender: TObject;
Params: TGridCellMouseButtonParamsEh);
begin
if TDataGridEh(Params.Grid).Selection.SelectionType =
TDataGridSelectionTypeEh.All
then
TDataGridEh(Params.Grid).Selection.Clear
else
TDataGridEh(Params.Grid).Selection.SelectAll;
Params.Handled := True;
end;IndicatorTitle.OnMouseClick
property OnMouseClick: TDataGridIndicatorTitleMouseClickEventEh;TDataGridIndicatorTitleMouseClickEventEh = procedure (
Sender: TObject;
Params: TGridCellMouseButtonParamsEh) of object;The event is called when the mouse is clicked on a cell.
TDataGridEh.IndicatorTitle.OnMouseClick Demo
procedure TFormDataGridEventsTester.DataGridEh1IndicatorTitleMouseClick(
Sender: TObject;
Params: TGridCellMouseButtonParamsEh);
begin
if TDataGridEh(Params.Grid).Selection.SelectionType =
TDataGridSelectionTypeEh.All
then
TDataGridEh(Params.Grid).Selection.Clear
else
TDataGridEh(Params.Grid).Selection.SelectAll;
Params.Handled := True;
end;