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
|
Oct 12, 2006 - 2:39 PM
|
under the following conditions...
Data in a ReportGrid is sorted on a column. I use the following code to locate the selected rows:
int SelectedRow = SelectionGetFirstRowInColumn( column );
while( SelectedRow != -1 ) { SelectedRow = SelectionGetNextRowInColumn( column, SelectedRow ); //... Do something to selected row, focused column }
How do I use column and SelectedRow to locate the cells. Remember data is sorted and so I can’t use SelectedRow directly to look up the Item in the array I saved it in when I initialized the ReportGridWnd. I know the column from the cell that I edited.
I need the lookup to work when grouped also.
Thanks
|
|
David Skok
|
Oct 12, 2006 - 3:04 PM
|
My apologies, I just realized that the CExtGridWnd::GridCellGet method can be used.
|
|