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
{
}
 
Back
Top