Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How we can set selected item in this list like we listbox.item[0].selected=true;Please help

Custom List Box with Cool Effects[^]
Posted
Updated 4-Oct-11 0:01am
v2

1 solution

Use following code.

SQL
ListBox1.SelectedItem.Selected = true;
       ListBox1.Items.FindByValue("0".ToString()).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