Can checkboxes be removed from a .NET WinForms ListView at runtime?
- by James
Is it possible to remove the checkboxes from a .NET WinForms ListView control at runtime?
The following code appears to have no effect when '.Checkboxes' has initially been set to 'true' and the control has rendered onto a form with checkboxes available for each list view item:
// C#:
testListView.BeginUpdate();
testListView.Checkboxes = false;
testListView.EndUpdate();
Is there a method that must be called to enact this change? What is the use of providing the .Checkboxes property when it defaults to 'false' and only has an effect if set to 'true'?