This is a migrated thread and some comments may be shown as answers.

Wite selected ListBox items to 1 table column

1 Answer 35 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
davidp
Top achievements
Rank 1
davidp asked on 20 May 2010, 07:43 PM
Is it possible to have selected ListBox items written to 1 column in a table?  I have a Listbox that contains staff whenever a staff member is moved to the associated Listbox I would like to write all names that are in the selected listbox to 1 column in a table. 

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 May 2010, 04:05 PM

Hello,

One suggestion would be looping through the SelectedItems collection and adding the values to table.

C#:

 
        foreach (RadListBoxItem item in RadListBox1.SelectedItems)  
        {  
            string str = item.Text;  
            // Your logic to add the values to table  
        } 

-Shinu.

Tags
ListBox
Asked by
davidp
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or