hi all i´m 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
|