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__
---_,>/'_------
(_) \(_)
---------------

Re: Dropdown by Tim

Tim
Sat Jun 18 08:36:12 CDT 2005

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)).

--
Tim Wilson
.Net Compact Framework MVP

"vinay" <vinay@discussions.microsoft.com> wrote in message
news:EC3BCA8D-2915-4769-AEC1-A2D3BEC17756@microsoft.com...
> 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__
> ---_,>/'_------
> (_) \(_)
> ---------------