listview invalidate problem

  • Thread starter Thread starter ohmmega
  • Start date Start date
O

ohmmega

high!

i've created a listviewitem[]-object with a complete list and add it
during runtime into a listview.

lvParameters.BeginUpdate();
lvParameters.Items.Clear();
lvParameters.Items.AddRange( ItemList );
lvParameters.EndUpdate();
lvParameters.Invalidate();

the list shows my entries, but with a different font-size and without
backgroundcolors. but after minimizing the app or switching to another
window and back, the display works correkt.

i've left a screenshot on http://stud4.tuwien.ac.at/~e0225971/screenshot.jpg
on the left you see before and on the right after the manual
screenupdate (ignore the white artefacts - made by myself).

any suggestions?

thanks
rené
 
Do you have any code for the items you are creating, it sounds like you are
giving them funky formats which are displaying immediatly.
Having that code would give me something more solid to test with to
replicate the issue and have a look at why its happening.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top