Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
for eg: if i selected two values then i have to insert into two respective columns
Posted

concatenate your selection separated with any spacial character like (, # .) and store in column while fetching value from database invert the process ...
 
Share this answer
 
Comments
Member 9378829 24-Jan-13 0:21am    
hi vivektiwari97701 could you please give me example query
XML
Add Selected  values from listbox then you decide column you do add in table columns
<pre lang="cs">
foreach (string item in lstbox.SelectedItems)
           {
               lst.Items.Add(item);
           }
</pre>

.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900