![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| A common question that I see posted all over the place is "How can I programmatically select an item in my dropdownlist or listbox based off a certain value?" It's actually quite simple and here's how to do it: Code: For Each Item As ListItem In MyListBox.Items
If Item.Value = "4" Then
Item.Selected = True
End If
Next
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.Join our Folding team: DeveloperBarn Folding |
| Sponsored Links |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Select Top 100 Percent | Wolffy | SQL Development | 1 | July 17th, 2008 03:46 PM |
| How do you add a static item to a dynamic dropdownlist | Shem | .Net Development | 19 | July 4th, 2008 08:14 AM |
| Select latest dates | Wolffy | SQL Development | 2 | April 11th, 2008 09:25 AM |
| sQL select add '%' next to value | peebman2000 | SQL Development | 8 | March 28th, 2008 10:21 AM |
| [ASP.Net/VB.Net] Programmatically Add Item to Validation Summary | jmurrayhead | Code Samples | 0 | March 20th, 2008 09:41 AM |