Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 29 Mar 2024, 00:57

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Ehlib - Documentation
PostPosted: 25 Jul 2020, 14:50 
Offline

Joined: 25 Jul 2020, 14:48
Posts: 3
Is there any better documentation, or are there any better demo for Ehlib dbgrid than the one available on the web site or with the demonstration apps.

I am looking at this control - it looks good, but I need better help. Everything I do causes access violations, ... I am sure that this is caused by my misunderstanding. I need help.

Any suggestions .......

I thought I would a little more specific -

I am mainly interested in these two functions

1. Moving rows
2. Row grouping.

I understand that I need to use the EhMemDataset. Do I have to copy all rows from my dataset (SQLQuery) manually or is there a quick way?

How do I make changes in the grid reflect in my SQLite DB?

When grouping, is it possible to make the group header unselectable?

I'm sure more questions will arise


Top
 Profile  
 
PostPosted: 28 Jul 2020, 21:24 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

The main documentation for the library components is in the file
<ehlib archive>\Hlp\ENG\EhLib Users Guide.doc

Some of the functions and methods are described on the site:
http://www.ehlib.com/online-help

The demo projects are located in the <ehlib archive>\Demos\ folder

In particular about 1. Moving rows see section
"Moving records in TMemTableEh when dghRecordMoving mode is active."
of "EhLib Users Guide.doc"

about 2. Row grouping.
section "Working with datain grouping mode."
of "EhLib Users Guide.doc"

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 04 Aug 2020, 16:16 
Offline

Joined: 25 Jul 2020, 14:48
Posts: 3
OK, I'm slowly moving forward.

I have one question.

Once I have my groups in my DBGrid, I can expand or collapse the nodes using TGridDataGroupLevelEh.ExpandNodes or TGridDataGroupLevelEh.CollapseNodes.

How can I do this on individual nodes?

Thanks in advance.


Top
 Profile  
 
PostPosted: 04 Aug 2020, 18:01 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

There is special property DBGridEh.DataGrouping.GroupDataTree - Tree list of all grouping elements in the form of a tree.

You can also access the array of grouping items as a flat list.
- DBGridEh.DataGrouping.GroupDataTree.FlatVisibleItem[const Index: Integer]: TGroupDataTreeNodeEh
- DBGridEh.DataGrouping.GroupDataTree.FlatVisibleCount - The number of elements in the list of visible expanded branches of the grouping tree.

Property that point to the current TreeNode which corresponds to the current record of the grid.
- DBGridEh.DataGrouping.CurDataNode

To change the status of the Expanded property for the current branch of the grouping tree, you can use the following code.

Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
  if DBGridEh1.DataGrouping.CurDataNode.NodeType = dntDataGroupEh then
    DBGridEh1.DataGrouping.CurDataNode.Expanded := not DBGridEh1.DataGrouping.CurDataNode.Expanded;
end;

Read more about the properties of the TGridGroupDataTreeEh class in the section "Working with datain grouping mode." of "EhLib Users Guide.doc" file.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 04 Aug 2020, 18:11 
Offline

Joined: 25 Jul 2020, 14:48
Posts: 3
Thanks


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Group