updating a ListView causes it to flash

Hi all, 

Im developing a system that uses a ListView Control to display the prices of stock market, as you all know the stock market prices are in frequent change, changing the ListView to reflect the recent item change causes it to flash, and since there are a huge number of items to display the general appreance of the application is getting ugly, any help would be appreciated.

Thanks


Answer this question

updating a ListView causes it to flash

  • Nightlinerdev

    call  listView.BeginUpdate() before adding items and call listView.EndUpdate() after. This will prevent the listview from painting while the items are being added.

  • RLRTech

    If you are making a number of changes in one go then use SuspendLayout before the changes and ResumeLayout afterwards.  If you simply have changes occurring continually then I'm not sure what the answer is.
  • updating a ListView causes it to flash