M
Mark Rae
Hi,
I have a bog-standard ListView control in a v1.1 C# WinForms project, with
three colums, Details View.
There is "Select All" button under the ListView control with the following
code:
foreach(ListViewItem lvi in lvBackupFiles.Items)
{
lvi.Selected = true;
}
This runs OK and correctly sets the Selected property of each ListViewItem
to true.
However, the ListView doesn't update itself until I click on one of its
column headers. I tried surrounding the code with BeginUpdate() and
EndUpdate(), but it still doesn't refresh / repaint.
What am I doing wrong?
Any assistance gratefully received.
Mark
I have a bog-standard ListView control in a v1.1 C# WinForms project, with
three colums, Details View.
There is "Select All" button under the ListView control with the following
code:
foreach(ListViewItem lvi in lvBackupFiles.Items)
{
lvi.Selected = true;
}
This runs OK and correctly sets the Selected property of each ListViewItem
to true.
However, the ListView doesn't update itself until I click on one of its
column headers. I tried surrounding the code with BeginUpdate() and
EndUpdate(), but it still doesn't refresh / repaint.
What am I doing wrong?
Any assistance gratefully received.
Mark