when i want binding a textbox to a untyped dataset by this cod:
.
.
Dim Ds as New DataSet
.
.
datagride1.databinding.add(new binding ("datasource", ds,"mytabelname"))
txt1.databinding.add( new binding ("text",ds,"mytablename.column1"))
.
.

the vb.net compiler show the follwing error:
"An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll

Additional information: Cannot bind to property or column id on
DataSource."

realy, i dont known how i can correct it.
NOTE: when i using of "typed dataset" no error occur

my email is: srezaii2000@yahoo.com

thanks

Re: i have a problam whit untyped dataset. who is can help me? by Miha

Miha
Mon Oct 25 16:35:26 CDT 2004

Hi,

Try setting datagride1.DataSource = ds.Tables("mytabelname")

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"saeed rezaei" <srezaii2000@yahoo.com> wrote in message
news:86f4407e.0410251202.5cf9be07@posting.google.com...
> when i want binding a textbox to a untyped dataset by this cod:
> .
> .
> Dim Ds as New DataSet
> .
> .
> datagride1.databinding.add(new binding ("datasource", ds,"mytabelname"))
> txt1.databinding.add( new binding ("text",ds,"mytablename.column1"))
> .
> .
>
> the vb.net compiler show the follwing error:
> "An unhandled exception of type 'System.ArgumentException' occurred in
> system.windows.forms.dll
>
> Additional information: Cannot bind to property or column id on
> DataSource."
>
> realy, i dont known how i can correct it.
> NOTE: when i using of "typed dataset" no error occur
>
> my email is: srezaii2000@yahoo.com
>
> thanks