.NET Listview Refresh

后端 未结 3 1261
攒了一身酷
攒了一身酷 2021-01-13 02:41

I have the following code, which basically takes values from a database and populates a listview.

using (IDataReader reader = cmd.ExecuteReader())
{                  


        
3条回答
  •  难免孤独
    2021-01-13 03:24

    You can also try setting the visible or enabled properties to false during the update and see if you like those results any better. Of course, reset the values to true when the update is done.

    Another approach is to create a panel to overlay the listbox. Set it's left, right, height, and width properties the same as your listbox and set it's visible property to true during the update, false after you're done.

提交回复
热议问题