PC Review


Reply
Thread Tools Rate Thread

Databinding by code

 
 
Michael Meier
Guest
Posts: n/a
 
      6th Feb 2007
Dear Ng,

in a WinForm I declared a Dataset which contains one DataTable.
Now I am trying to bind the datafields to textboxes and an navigation
control.

What do i have to do??

MfG
Michael


 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      7th Feb 2007
Google is your friend. Read up on it, try it, then ask a more specific
question.

http://msdn2.microsoft.com/en-us/library/ef2xyb33.aspx

Good luck.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Michael Meier" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear Ng,
>
> in a WinForm I declared a Dataset which contains one DataTable.
> Now I am trying to bind the datafields to textboxes and an navigation
> control.
>
> What do i have to do??
>
> MfG
> Michael
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      7th Feb 2007
MyTextBox.DataBindings.Add("Text",TheTable or whatever,"TheProperty")

That is all, assuming that you want to do it to the Text property from the
textbox.

Be aware that everything that is done by the designer is forever as code in
your program so you can see it there.

Cor

"Michael Meier" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Dear Ng,
>
> in a WinForm I declared a Dataset which contains one DataTable.
> Now I am trying to bind the datafields to textboxes and an navigation
> control.
>
> What do i have to do??
>
> MfG
> Michael
>



 
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
wpf-dataBinding - set DataContext in xaml to an object in code Rolf Welskes Microsoft Dot NET Framework 3 9th Nov 2007 11:51 PM
DataBinding Through Code Mike Microsoft ASP .NET 2 16th Jan 2007 04:45 PM
Databinding templated controls exclusively from the code behind AC [MVP MCMS] Microsoft ASP .NET 4 4th Jan 2007 08:20 AM
databinding fails when text property changed in code =?Utf-8?B?Z3V5?= Microsoft Dot NET Framework Forms 1 25th Aug 2004 12:23 PM
How to set databinding.eval in code? Sue Microsoft Dot NET 2 7th Aug 2003 04:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:05 PM.