I am using ObjectListView
, and I am dealing with Checkboxes in it. In the documentation of the ObjectListView
it is mentioned that i can use this code to set the checkbox value:
foreach (OLVListItem olvi in objectListView1.SelectedItems)
olvi.Checked = !olvi.Checked;
But i cant use the OLVListItem
. What namespace should i add to the project? And what is the difference between setting the checkbox value by using this way and setting putter delegate?
Make sure you have using BrightIdeasSoftware;
up there ;)
Whenever you run into this, click on the object type, in this case OLVListItem, and press Ctrl+. and you'll get a little menu with the option to add the appropriate using!! See, Visual studio knows what namespace everything you reference but wants you to specify!