Sign in to follow this  
Daggerbot

[.NET] ListView not rendering properly

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this