TheSwamp

Code Red => .NET => Topic started by: Tuoni on April 16, 2008, 07:07:40 AM

Title: Checked list box question?
Post by: Tuoni on April 16, 2008, 07:07:40 AM
You'll have to bear with me - I've never really played with .NET GUIs before, I've always written the code underneath them :)

What I want to achieve is along the lines of a checked list box... with more checkboxes.  Basically, I will have a list of product codes, and I want the user to be able to check several options for each code; something along the lines of the illustration below (I apologise in advance for the poor illustration)

Any ideas?
Title: Re: Checked list box question?
Post by: Glenn R on April 16, 2008, 08:44:18 AM
Hmmm...from memory, I thought the almighty DataGrid could do this (cells turn into check boxes for boolean values for example) and from what I've been reading on WPF, it certainly could.
Title: Re: Checked list box question?
Post by: Tuoni on April 16, 2008, 10:13:11 AM
Thanks, Glenn,

I have managed to get something which looks kinda like what I was aiming for using the DataGridView :)
Title: Re: Checked list box question?
Post by: Tuoni on April 19, 2008, 07:49:01 AM
I was just wondering if anyone knew of a quicker way to work out cells which are checked in a checkbox column in a datagridview than to loop through each row and get the value of the checkbox cell? 

I have looked in the API (which I find a lot more difficult to use than Java's :oops: ) and done some searching on the intertubes to no avail.