Sign in to follow this  

[.NET] ListView not rendering properly

This topic is 3535 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I'm making my first (non-experimental) C#.NET project, and all was well for the first couple of days. But I've run into a problem. My ListView isn't rendering properly. Here is what it looks like: The gray strip at the top is supposed to be a set of headers, which should say "Character | Level | Health". Also, under the "Player" group, there should be an entry that says "Daggerbot | L0 | HP 0 / 0". I've done some debugging, and I'm pretty sure I've got the parameters correct. Has anybody seen this before? What am I doing wrong? All help is appreciated. EDIT: SOLVED [Edited by - Daggerbot on May 14, 2008 4:16:52 PM]

Share this post


Link to post
Share on other sites
Can you post the code that constructs the list view?

Share this post


Link to post
Share on other sites
Problem solved. The problem wasn't in the control initialization code. After a bit of debugging and commenting and uncommenting, I saw that to refresh the ListView, I was using listView.Clear() instead of listView.Items.Clear(). Thanks for your time.

Share this post


Link to post
Share on other sites
Sign in to follow this