G
Guest
Hello folks,
for showing data from my database i use a Master-Panel which have added
Detail-Panels for each row of the dataset.
Inserting the Detail-Panels running this code
disDetails.Controls.Clear()
For Each r As DataRow In myDataSet
Dim p As myDetailPanel
p = New myDetailPanel(r)
p.Dock = DockStyle.Top
disDetails.Controls.Add(p)
p.SendToBack()
Next
If i chance to the next Masterrecord and displaying the new Detailrows
(maximum 15 rows) i have to wait 1-5 seconds.
Cause of this bad performance I inserted
"Debug.Writeline(Datetime.now.ticks)" and found that most of this time (80%)
will used for running the Controls.Clear() statement.
Thanks in advance for any help to get a better performance.
Niels
for showing data from my database i use a Master-Panel which have added
Detail-Panels for each row of the dataset.
Inserting the Detail-Panels running this code
disDetails.Controls.Clear()
For Each r As DataRow In myDataSet
Dim p As myDetailPanel
p = New myDetailPanel(r)
p.Dock = DockStyle.Top
disDetails.Controls.Add(p)
p.SendToBack()
Next
If i chance to the next Masterrecord and displaying the new Detailrows
(maximum 15 rows) i have to wait 1-5 seconds.
Cause of this bad performance I inserted
"Debug.Writeline(Datetime.now.ticks)" and found that most of this time (80%)
will used for running the Controls.Clear() statement.
Thanks in advance for any help to get a better performance.
Niels