I made a program which contains a LV control as the central part of it. Program takes records from a database and store them into LV which has 10 columns. Everything was fine while I had 400-500 records but now I have more than 5000 and I have to wait a few minutes to start to work.
Routine for adding data to LV is classic one.
Is there a way to do anything with this?
Routine for adding data to LV is classic one.
VB Code:
Do While dr.Read item1 = ListView1.Items.Add(dr("ID")) With item1 .SubItems.Add(dr("row1")) .SubItems.Add(dr("row2")) .SubItems.Add(dr("row3")) .SubItems.Add(dr("row4")) .SubItems.Add(dr("row5")) .SubItems.Add(dr("row6")) .SubItems.Add(dr("row7")) .SubItems.Add(dr("row8")) .SubItems.Add(dr("row9")) End With Loop
Is there a way to do anything with this?