Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 12:53

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 15 Mar 2024, 06:25 
Offline

Joined: 14 Mar 2024, 14:13
Posts: 5
Hello,

I have a DBGridEh like this :

[img]C:\Users\Donoharjo\Downloads\1.jpg[/img]

I want to create a DataGrouping based on 'Division' column with this code :

Code:
DBGPiutang.DataGrouping.Active := True;
        DBGPiutang.DataGrouping.GroupPanelVisible := True;

       gl := DBGPiutang.DataGrouping.GroupLevels.Add();
       gl.Column := DBGPiutang.FieldColumns['Divisi'];

       DBGPiutang.DataGrouping.GroupLevels[0].ExpandNodes;


But why are the results like this, is there something wrong with the code or method?

[img]C:\Users\Donoharjo\Downloads\2.jpg[/img]

Is there anyone who can help ?

Thanks
Donoharjo


Top
 Profile  
 
PostPosted: 26 Mar 2024, 09:47 
Offline

Joined: 08 May 2014, 18:06
Posts: 663
Hello Donoharjo.

Unfortunately, the pictures did not load.
Are you using TMemTableEh as a DataSet?

The grouping works only when grid is connected to dataset of TMemTableEh type.

Working with grouping in the grid is described in the documentation at the following address:
https://www.ehlib.com/online-help/EhLib ... -mode.html

_________________
Best regards
EhLib Support Team


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 48 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