adding blank line to dropdownlist
Posted on 2004-09-27
I have read several answers to this already but they don't work for my code or Iam not doing it right.
Here is my code. Once my dropdownlists are populated, I need a blank line at the top.
ByVal oDr As OracleClient.OracleDataReader, _
ByVal iPadSize As Integer, _
ByVal iMode As enmActiveMode)
Dim i As Integer
If oDr.HasRows Then
.Items.Add(rPad(Trim(oDr(0).ToString), " ", iPadSize) & _
" - " & Trim(oDr(1).ToString))
If iMode = modStartup.enmActiveMode.amAdd Then (this is true)
' add extra blank item
.Items.Add("") (doesn't work)