Click here to Skip to main content
15,898,988 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:07am
v2
Comments
P.Salini 4-Oct-11 6:08am    
please provide valid link there using improve question
André Kraak 4-Oct-11 7:41am    
Repost of: http://www.codeproject.com/Questions/263851/how-we-can-set-select-option-in-this-list-view-Pls

Please do not repost your question; it will not help get it answered any quicker.
It may even work against you as people do not like this pushy behaviour.
Look at your original question and see if you can make it any clearer and respond to any inquiries made; this should make the question more appealing.

Please remove this repost. Thank you.

1 solution

Try this.

SQL
ListBox1.SelectedItem.Selected = true;
       ListBox1.Items.FindByValue("0".ToString()).Selected = true;



Yogesh.
 
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