BUG: GetFocusedRow() returns row 0 if no selection |
Post Reply |
Author | ||
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Posted: 20 March 2008 at 10:33am |
|
Hello
After showing the report, no row should be selected.
I tried the solution to call
1) GetSelectedRows()->Clear() after Populate() and to call
2) SelectionEnable(FALSE) before Populate() and reactivate it after Populate().
Both works.
But in our update code we store the last selected record to restore selection after refill. If the user has not yet selects a row, GetFocusedRow() returns although the first row.
I found the problem in Populate();
I think it should be looks like so:
But in this case only solution (2) works. |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |