Dropdown

  • Thread starter Thread starter Guest
  • Start date Start date
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__
---_,>/'_------
(_) \(_)
---------------
 
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)).
 
Back
Top