Dropdown

G

Guest

Hi
I am not able to Insert a value at 0 index after i set a Datasource ??

Any alternatives..

cmbDomain.DisplayMember = "KEYNAME"
cmbDomain.ValueMember = "SETTING"
cmbDomain.DataSource = ds.Tables(0).DefaultView

Dim obj As Object = "Select a Domain"
cmbDomain.Items.Insert(0, obj)

Thanks
Vinay


--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------
 
T

Tim Wilson

You'll need to add the value to a new DataRow object and insert this object
into the DataTable that is acting as the underlying DataSource
(ds.Tables(0)).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

dropdown 1
js 2
Controls binded to datasource 6
opening a .TXT file 1
data to datagrid 1
LIne # on continuous subform 0
A strange problem.... 1
DataGrid.Columns(Index) 3

Top