Hi,
I'm using NetAdvantage 10.2 and C#. I want to display a check box in a column. I see that there is a DataType property on a list view column. When I set it to Boolean, the check box is displayed on the left, but I can't check/uncheck it. Is it possible to make the check box so that I check or uncheck it? Also, how do I center it in the column?
thanks
Mario
HelloMpiccoli,
Maybe one possible approach to solve this task, could be if you are using property:
this.ultraListView1.ViewSettingsDetails.CheckBoxStyle = Infragistics.Win.UltraWinListView.CheckBoxStyle.CheckBox;
I made small sample for you. Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
Here is the sample
this is the sample
If you comment out the lines in the ItemActivated event, you can no longer check the boxes in the subitem column. I thought maybe it was some property I was setting on the list view, but I copied my initialization code into your project. It works when the lines in ItemActivated are uncommented, but doesn't when commented out.
I'm also using version 10.2, so I had to change the references. I included the project with my updates.
Hello Mario,
mpiccoli said: If you comment out the lines in the ItemActivated event, you can no longer check the boxes in the subitem column
The mentioned behavior is expected if you comment this code. The subitems can`t be edit. More information you could find in similar forum thread http://ko.infragistics.com/community/forums/p/5536/33845.aspx , so my suggestion is to use my approach from the sample.
Hi Georgi,
Just seems odd that with the code I can check/uncheck any other box in that column, like it puts it in some type of "edit" mode. I'll probably just switch over to using a grid to get the functionality I'm looking for. Thanks.
Thanks for your feedback. Let me know if you have any further questions.