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 |
|
David Skok
|
Aug 11, 2006 - 6:14 AM
|
What calls are required to clear out all rows and columns in a CExtReportGridWnd before reloading with a new set of column and row data. The column headings need to be removed and replaced with new ones also.
|
|
Technical Support
|
Aug 14, 2006 - 6:31 AM
|
To reinitialize the content of the report grid control, remove all the items (rows), columns (fields), sort order and focus/selection: CExtReportGridWnd & wndGrid = . . .
LONG nColCount = wndGrid.ColumnCountGet(), nRowCount = wndGrid.RowCountGet();
if( nRowCount > 0 )
{
wndGrid.SelectionUnset( false, false );
wndGrid.ReportItemUnRegisterSelection( false );
}
wndGrid.SelectionUnset( false, false );
wndGrid.FocusUnset( false );
wndGrid.ReportColumnUnRegister( NULL, NULL, false );
|
|