By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,458 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,458 IT Pros & Developers. It's quick & easy.

listview invalidate problem

P: n/a
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é
Jul 8 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"ohmmega" wrote:
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é
Jul 9 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.