Author Topic: Checked list box question?  (Read 1871 times)

0 Members and 1 Guest are viewing this topic.

Tuoni

  • Gator
  • Posts: 3032
  • I do stuff, and things!
Checked list box question?
« 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?

Glenn R

  • Guest
Re: Checked list box question?
« Reply #1 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.

Tuoni

  • Gator
  • Posts: 3032
  • I do stuff, and things!
Re: Checked list box question?
« Reply #2 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 :)

Tuoni

  • Gator
  • Posts: 3032
  • I do stuff, and things!
Re: Checked list box question?
« Reply #3 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.