Selected rows lost after populate |
Post Reply |
Author | |
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
Posted: 28 December 2011 at 11:30am |
Is it normal for the SelectedRows to have only one selected item after calling populate? Is there a setting to prevent this?
It can be reproduced using 15.2.1 and this code on a form with a button and a reportcontrol:
Private Sub Command1_Click()
ReportControl1.SelectedRows.Add ReportControl1.Rows.Row(0) ReportControl1.SelectedRows.Add ReportControl1.Rows.Row(1) 'ReportControl1.Populate End Sub Private Sub Form_Load()
With ReportControl1 .Columns.Add 0, "Test", 400, True .Columns.Add 1, "Test2", 400, True With .AddRecord .Item(0).Value = 0 .Item(1).Value = "Test" End With With .AddRecord .Item(0).Value = 1 .Item(1).Value = "Test2" End With With .AddRecord .Item(0).Value = 2 .Item(1).Value = "Test3" End With .Populate End With End Sub If you uncomment the populate method the selection will be lost.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.3.1
Platform: Windows XP (32bit) - SP 3 (on VMWare) Language: Visual Basic 6.0 |
|
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 |