Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » CExtReportGridWnd - Insert Row expands the group Collapse All
Subject Author Date
Adam Keadey Apr 24, 2007 - 8:26 AM

When I insert a row into a grouped CExtReportGridCtrl, that group expands after I call UpdateSortOrder.

1. How can I keep the node from expanding?
2. How can I detect if the node is already expanded?
3. If I expand the node and have not called the sort update, does the expanding code go ahead and update the sort order?

Technical Support Apr 25, 2007 - 3:53 AM

The CExtReportGridWnd class is derived from CExtTreeGridWnd which implements a tree grid. So you can use CExtTreeGridWnd::Item***() methods based on HTREEITEM row handles for browsing the tree row. In the case of report grid control, the row’s HTREEITEM handle is a pointer to a report grid item (CExtReportGridItem*). The leaf rows without child items are the report grid items you registered in the report grid. All other non-leaf tree rows are built by the report grid dynamically. This allows you to detect the exact location of each row in the report grid window. Unfortunately you cannot insert a new item without without rebuilding the sort/group order completely. This feature is in our to-do list and we will implement this soon.

Adam Keadey Apr 25, 2007 - 6:51 AM

Thanks for the response that does explain some other questions I have.

My real concern is that when I insert an item int a collapsed group, it expands. I cannot have my application acting in this way.

I’m sure I can come up with a work around if this is the intended behavior.

Technical Support Apr 28, 2007 - 12:15 PM

Actually what you want to achieve is not supported at the moment. We plan to add this soon.