How to prevent flickering in ListView when updating a single ListViewItem's text?

前端 未结 10 2203
囚心锁ツ
囚心锁ツ 2020-11-27 04:56

All I want is to update an ListViewItem\'s text whithout seeing any flickering.

This is my code for updating (called several times):

listView.BeginUp         


        
10条回答
  •  春和景丽
    2020-11-27 06:02

    Simple solution is this:

    yourlistview.BeginUpdate()

    //Do your update of adding and removing item from the list

    yourlistview.EndUpdate()

提交回复
热议问题