Move items from listbox and datagrid

J

Jocke

Hi,

Picture this:

I have two listboxes next to each other. The one to the left lists
available projects. The right one lists selected projects.
Between these two I have two buttons, "Add" and "Remove".

So, you select one project(or more) on the left click the Add-button
and moves the the right listbox. Of course the other way around when
removing projects.
This is a quite common behaviour I guess.

So far I have no problems, BUT:

The listbox to the right must have three columns, ProjectName and two
checkbox columns.
So, you select one project(or more) on the left click the Add-button
and moves the the right listbox and then check/uncheck the checkboxes
and save the page.

As far as I know you can not have columns in a listbox, so I thought I
could have a datagrid to the right instead, including two checkbox
columns. The problem is that I am not that good at datagrids...

How do I select one item in the listbox, converts it to a datagrid item
and adds it to the datagrid?
And the other way around, how do I select a datagrid item, converts it
to a list item and adds it to the listbox?

Or does anyone have another ideas how to solve this?

Can someone please help me out??

Regards
Jocke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top