example code:
.....
EventList.DataSource = dtrList
EventList.DataTextField = ("EventName")
EventList.DataValueField = ("EventID")
EventList.DataBind()
' insert an item at the beginning of the list
'----------------------------------------------------
Dim NewItem As ListItem
EventList.Items.Insert(0, New ListItem("-- All Events --","-1"))
......
"Kylin" <w0**@sohu.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Now,the dropdownlist is binded with a DataSet object,
go on ,
I want to add a new item into DropDownList,
and let the new item in the first Postion,
like this:
-- All items -- //which I add
kjkljljljlk //which come from datset
jkjljl
jkjkljl
jkljljl
jkljasle
any help ?
--
FireCrow Studio
Kylin Garden
EMail:w0**@sohu.com
ICQ:156134382