Dropdown List Box - Adding an item value

  • Thread starter Thread starter Brian Candy
  • Start date Start date
B

Brian Candy

With a drop down list box, I have discovered how to add a text
description. Now how do I go about adding a value?

For FNa = 0 To dsDetails.Tables("Team").Rows.Count - 1
Row = dsDetails.Tables("Team").Rows(FNa)
dlTeam.Items.Add(Row.Item("Description"))
Next

Thanks in advance

Brian Candy
 
use this syntax

dlTeam.Items.Add(New ListItem("No", 0))
dlTeam.Items.Add(New ListItem("Yes", 1))

Regards
Jose
 
Back
Top