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 |
|
Eric Reeves
|
Mar 28, 2007 - 12:31 PM
|
I have the report grid setup so that the first column is grouped on. Now I want to go and update the text displayed in the grouping label. This is what I have tried and it fails to get the cell.
How is this supposed to be done?
//get the root item HTREEITEM hRoot = ItemGetRoot();
//check the item if(!hRoot) return;
//get the first item HTREEITEM hItem = this->ItemGetFirstChild(hRoot);
//parse the children of root while(hItem) { //get the cell CExtGridCell *pCell = this->ItemGetCell(hItem, 0);
//get the text of the cell CString strCell; pCell->TextGet(strCell); //get the next item hItem = this->ItemGetNext(hItem, true, false, false); }
|
|
Technical Support
|
Mar 29, 2007 - 11:24 AM
|
Although CExtReportGridWnd class is derived from the CExtTreeGridWnd class and you can also use a HTREEITEM -handle based API implemented in the report grid. You can modify grid cells in the CExtReportGridColumn* columns of CExtReportGridItem* report items using CExtReportGridWnd::ItemGetCell() and finaly update the sort order using CExtReportGridWnd::ReportSortOrderUpdate() .
|
|