![]() |
SelectedRows collection = broken |
Post Reply ![]() |
Author | |
tigger ![]() Newbie ![]() Joined: 07 June 2006 Location: Netherlands Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 07 June 2006 at 6:38am |
Hello all, The SelectedRows property of the ActiveX ReportControl is broken. I've attached an example of the project. Press the Delete key to display the selected items (nothing gets deleted actually ;). Notice that when pressing the Delete key twice it doesn't return the selected item(s) but the selected Count is > 0! I'm using C# in Visual Studio 2005. Please please help! Erik |
|
![]() |
|
tigger ![]() Newbie ![]() Joined: 07 June 2006 Location: Netherlands Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
I've found a workaround. Call ReportControl.SelectedRows.GetEnumerator().Reset(); before you use the foreach construct to reset the aparent static enumerator. CodeJock, this should be done by the control and not by the user. At the very least put something in the documentation. Oh well, another day down the drain Erik |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Thanks a lot for your notes and a solution, we'll see what is the problem with the control and will try to fix it by the next release...
-- WBR, Serge |
|
![]() |
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 |