PC Review


Reply
Thread Tools Rate Thread

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

 
 
João Santa Bárbara
Guest
Posts: n/a
 
      9th Mar 2005
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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to Eary Bind Instead of Late Bind Object an IE Object Dick Sutton Microsoft VB .NET 3 23rd May 2006 04:32 PM
Bind a button's enabled property to a custom object moondaddy Microsoft Dot NET Framework Forms 3 23rd May 2006 04:48 AM
How do I Bind to a DataView instead of a DataTable =?Utf-8?B?SmF5IFBvbmR5?= Microsoft Dot NET Framework Forms 7 11th May 2005 04:34 PM
the primarykey property on the datatable object =?Utf-8?B?YWxhbg==?= Microsoft Dot NET 2 18th Feb 2004 04:40 PM
How to Bind DataTable to ListView? news@mikendy.com Microsoft Dot NET Compact Framework 3 29th Aug 2003 01:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 AM.