EhLib.Com
https://forum.ehlib.com/en/

Ehlib - Documentation
https://forum.ehlib.com/en/viewtopic.php?f=5&t=1051
Page 1 of 1

Author:  pcurtis [ 25 Jul 2020, 14:50 ]
Post subject:  Ehlib - Documentation

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

Author:  EhLibSupport [ 28 Jul 2020, 21:24 ]
Post subject:  Re: Ehlib - Documentation

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"

Author:  pcurtis [ 04 Aug 2020, 16:16 ]
Post subject:  Re: Ehlib - Documentation

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.

Author:  EhLibSupport [ 04 Aug 2020, 18:01 ]
Post subject:  Re: Ehlib - Documentation

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.

Author:  pcurtis [ 04 Aug 2020, 18:11 ]
Post subject:  Re: Ehlib - Documentation

Thanks

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/