Hello
How are you going to use it?
To access the current record in the tree group, use the following property:
TDBGridEh.DataGrouping.CurDataNode: TGroupDataTreeNodeEh
It has a sub-property NodeType: TGroupDataTreeNodeTypeEh = (dntDataSetRecordEh, dntDataGroupEh, dntDataGroupFooterEh);
that difines the type of the current row.
Here's an example:
Code:
procedure TForm1.Button4Click (Sender: TObject);
begin
if (DBGridEh2.DataGrouping.CurDataNode <> nil) and
(DBGridEh2.DataGrouping.CurDataNode.NodeType = dntDataGroupEh)
then
ShowMessage ('We are on the grouping Row');
end;
Best regards
Admin