Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 20:38

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 14 Jun 2013, 19:42 
Offline

Joined: 14 Jun 2013, 19:30
Posts: 9
How i get current row in "DataGrouping" ?


Top
 Profile  
 
PostPosted: 14 Jun 2013, 21:07 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
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

_________________
Best regards
Admin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group