HowTo?: Vb.Net ListView
-
I am using a listview control in Details mode that has three columns as follows: Q100 C true Q200 N false Q300 N true I would like to display a checkbox in the third column. Does anyone have any suggestions for adding a checkbox in the third column. TIA! - Derek
-
I am using a listview control in Details mode that has three columns as follows: Q100 C true Q200 N false Q300 N true I would like to display a checkbox in the third column. Does anyone have any suggestions for adding a checkbox in the third column. TIA! - Derek
You may want to look into using a datagrid instead. You would have to do some code for the bubbling events, but it would surely be easier than drawing your own custom control. David Stone dstone@newcenturytitle.com "I am but mad north-northwest, when the wind is southerly I know a hawk from a handsaw." -Hamlet
-
You may want to look into using a datagrid instead. You would have to do some code for the bubbling events, but it would surely be easier than drawing your own custom control. David Stone dstone@newcenturytitle.com "I am but mad north-northwest, when the wind is southerly I know a hawk from a handsaw." -Hamlet
Thx for the reply! I have resorted to using the listview control but with the checkedboxes property set to True. It's not exactly what I wanted but I am tired of fighting with the listview and the datagrid. The problem that I had with the datagrid is that the dragdrop events (lack of itemdrag) were more difficult to deal with as compared to the listview. Although, at least with the datagrid I could add checkboxes to easily to a datacolumn. I was able to add checkboxes to a listview but the problem is that I just ended up painting the controls on top of the listview verses binding the control to the actual column. So when I scrolled thru the list the checkboxes were not bound to a specific row (sub-item). If I get some free time then I might try making a listview control that acts more like a datagrid. - Derek