TJS,
Here's how:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
DropDownList1.Items.Add(Pad(5) & "Item: 1")
End Sub
Private Function Pad(ByVal numberOfSpaces As Int32) As String
Dim Spaces As String
For items As Int32 = 1 To numberOfSpaces
Spaces &= " "
Next
Return Server.HtmlDecode(Spaces)
End Function
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"TJS" <> wrote in message
news:...
> I am populating a droplist control from a query.
>
> each line of content in the dropdownlist gets "trimmed" automatically .
> how can I force a leading space to a line in a dropdown list ??
>
>