Can checkboxes be removed from a .NET WinForms ListView at runtime?

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2009-04-24T14:44:22Z Indexed on 2010/03/28 8:33 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#