Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Khachatur Petrosyan
|
Jun 21, 2007 - 1:23 PM
|
Hello,
I find the way to programmatically enum all ReportGrid columns (ReportColumnGetStartPosition & ReportColumnGetNext) but cannot find the similar functions for enumerating the ReportGrid rows.
Is there any way to do this?
Thanks, Khachatur
|
|
Technical Support
|
Jun 22, 2007 - 11:01 AM
|
The CExtReportGridWnd</code> is based on the CExtTreeGridWnd tree grid control. You should use the CExtTreeGridWnd::Item***() methods to enumerate tree rows. Each tree rows is uniquely identified by its HTREEITEM handle. The CExtTreeGridWnd::ItemGetRoot() method returns a handle to the root item, which is invisible. The CExtTreeGridWnd::ItemGetChildCount() and CExtTreeGridWnd::ItemGetChildAt() methods allow you to walk through all the tree structure. In the case of CExtReportGridWnd , the CExtTreeGridWnd::ItemGetChildCount() method returns zero for data rows and for the root row if the report grid is empty. This method returns a non-zero value for group rows if grouping is applied. The HTREEITEM handles can be converted to CExtReportGridItem* pointers using the CExtReportGridWnd::ReportItemFromTreeItem( )method, but in fact HTREEITEM handles are similar to CExtReportGridItem* pointers.
|
|
Khachatur Petrosyan
|
Jun 25, 2007 - 2:43 PM
|
Thank you, Your answer was helpfuul.
KP
|
|