Click here to Skip to main content
16,016,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have to list out pre-selected items in listbox when i load items from database value. if i save multiselected values in table, its display that multiselected values again when i load items in listbox. If anybody know please help me.


Thanks.

[edit]Subject made a relevant summary, rather than the whole question repeated - OriginalGriff[/edit]
Posted
Updated 13-May-11 20:40pm
v2
Comments
Sandeep Mewara 14-May-11 6:07am    
Not clear.
Jayanthi-SE 14-May-11 7:23am    
when i insert record i selected multiple items in listbox. I want to display that database values in listbox. (its multiselected items).

1 solution

Hi,

Try this code. Its working.

li_category.Items.FindByValue(item.Value).Selected = True
 
Share this answer
 

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