PC Review


Reply
Thread Tools Rate Thread

connect bindingSource to text object.

 
 
Mr. X.
Guest
Posts: n/a
 
      29th May 2010
Hello.
What is wrong of the following (the text has no data)? :

Dim FBndDataTable As DataTable
Dim FBndDataSource As BindingSource
....
FBndDataSource = New BindingSource
FBndDataSource.DataSource = DataTable
....
Dim drv As DataRowView
Dim dr As DataRow

drv = FBndDataSource.AddNew()
dr = drv.Row

....
' txtValue is TextBox.
txtValue.DataBindings.Add("Text", bs, "query_id")

Thanks
 
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
Connect to BindingSource with DataMember cold80 Microsoft ADO .NET 0 26th Apr 2008 07:15 PM
DataGridView, BindingSource and Custom object VueMme Microsoft ADO .NET 0 10th Aug 2007 02:08 PM
DataGridView - BindingSource (Object) and ComboBox cell Przemek M. Zawada Microsoft C# .NET 3 24th Feb 2007 01:05 PM
Problem updating object behind bindingSource Simon Microsoft ADO .NET 4 26th Nov 2005 09:26 PM
How do I connect or anchor text to an object =?Utf-8?B?TWVpc2V0ZXI=?= Microsoft Word Document Management 2 19th Jul 2005 02:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 AM.