Polar Bear
Newcomer
- Joined
- Aug 5, 2005
- Messages
- 15
Hi,
I don't know why but the text formatting doesn't work at all for the dropdownlist. The reader return whole integers and I want to add two quotes to simulate inches. 20 -> 20''
I tired putting it outside the loop, and inline (html), same results.
Visual Basic:
If dr.HasRows() Then
drpWidth.Items.Add(New ListItem("",""))
While dr.Read()
drpWidth.Items.Add(New ListItem(dr.GetInt32(0),dr.GetInt32(0)))
drpWidth.DataTextFormatString = "{0:C}"
End While
Else
drpWidth.Items.Add(New ListItem("No Data",""))
End If
Thanks
* Um why aren't the code tags working? :/ The code is between them.
Last edited by a moderator: