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

前端 未结 10 2233
囚心锁ツ
囚心锁ツ 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 05:58

    Call the BeginUpdate() method on the ListView before setting any of the list view items and then only call EndUpdate() after all of the items have been added.

    That will stop the flicker.

提交回复
热议问题