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 |
|
Gunasekaran Velu
|
Nov 21, 2006 - 6:46 AM
|
Hi i am using CExtReportGrid. i want tree view model grid in initdialog dialog. i know that we can move the column header and arrange the report grid in form of tree . but i want to set the tree view in init dialog itself.
For example Sl.No Name Marks in my grid i want like this in initdialog -Sl.No - Name Marks
Thanks and Regards Guna
|
|
Technical Support
|
Nov 21, 2006 - 11:49 AM
|
You should specify the report sort order information for your report grid window. For instance, the following code groups the data by two columns: CExtReportGridWnd & wndReportGrid = . . .
CExtReportGridColumn * pRGC1 = . . .
CExtReportGridColumn * pRGC2 = . . .
bool bAscending1 = . . .
bool bAscending2 = . . .
CExtReportGridSortOrder rgso;
rgso.ColumnInsert( pRGC1, -1, bAscending1 );
rgso.ColumnInsert( pRGC2, -1, bAscending2 );
rgso.ColumnGroupCountSet( 2 ); // grouping
wndReportGrid.ReportSortOrderSet( rgso, false, true );
|
|
Gunasekaran Velu
|
Nov 21, 2006 - 11:18 PM
|
|
|