Thank You.
I will try it

On Mon, Mar 16, 2009 at 3:42 PM, ARUN KUMAR <[email protected]>wrote:

> Just Try
>
> subopt.DisplayMember="Subject"
>
>
>
> 2009/3/15 Jeena Ajiesh <[email protected]>
>
>>
>> Hi all,
>> Wen i bind a drop down list, its giving me an error,
>>
>> *"System.Data.DataRowView does not contain property with the name
>> 'Subject"*
>>
>> The code is as follows to populate dropdownlist
>>
>> Dim con as new sqlconnection(constr)
>> Dim strsql as string="Select distinct Subjectname from Subject"
>> Dim ds as new Dataset
>> con.Open()
>> Dim cmd as New SqlCommand(strsql,con)
>> Dim Adapt as New SqlDataAdapter(cmd)
>> Adapt.Fill(ds,"Subject")
>> subopt.Datasource=ds.tables(0)
>> subopt.DataMember="Subject"
>> subopt.DatatextField="Subject"
>> subopt.Databind()   --- Error
>>
>> Pls tell me hw to solve this???
>>
>> Regards
>> Jeena
>>
>
>
>
> --
> Regards
> *******************
> *C.Arun Kumar *
> *******************
>
>
>


-- 
****************
Regards,
♪♥♫♥Ĵєєήǎ ♫♥♪♥
Email: [email protected]
         [email protected]
         [email protected]

Reply via email to