Redrawing ListView

  • Thread starter Thread starter Jonathan Taylor
  • Start date Start date
J

Jonathan Taylor

I basically update the listview items, but how can i then refresh the
listview ??

I've tried Update(), Redraw() and Invalidate(). None of these work. The
new data displays fine if I close the form and then reopen it, but I need it
to update when i call a method, after I've added new data to a file.

Please help!!
Thanks.
 
string [] show = new string[3];
try
{
while(true)
{
if(some condition) break;
show[0] = ...
show[1] = ...
show[2] = ...
ListViewItem list = new ListViewItem(show);
listView1.Items.Add(list);
show[0] = show[1] = show[2] = "";
}
catch
{
}
 

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