471,350 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

How to Bind an object Property with an DataTable (HELP PLEASE VERY URGENT )

hi all im doing a control and one of the properties of my control is
"Value~" see below
Public property Value () As object
Get
return xValue
end Get
Set (Value as Object )
xValue = Value
End Set
End Property

and in my form i have a DataTable which the first column is an Integer

and i have done the binding to the control like this
Me.MyControlTest1.DataBindings.Add("Value", ds.Table(0), "CodeID")
and it allway thow an exception
System.ArgumentException: Object type cannot be converted to target type.
how can i solve this ???
thks
JSB

Jul 21 '05 #1
0 808

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by coleenholley | last post: by
3 posts views Thread by MrMike | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.