PC Review


Reply
Thread Tools Rate Thread

Binding TextBox programatically

 
 
Steven Smith
Guest
Posts: n/a
 
      17th Dec 2003
Hi guy's

whats the syntax for binding the text property of a
textbox to a particular field in a dataview
programatically ?

here's the scenario my form has two main sections the
first is a datagrid the second is a series of textboxes
which are initailly bound to the same full dataset and
later depending on actions taken by the user are bound to
the dataview I've figured out how to change the binding
of the datgrid but am struggling to get the syntax
correct for switching the binding of the textboxes

Regards Steve
 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      17th Dec 2003
Hi Steven

There are a lot of samples in this for what you ask

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing it

http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

I hope this helps a little bit?

Cor

> whats the syntax for binding the text property of a
> textbox to a particular field in a dataview
> programatically ?
>
> here's the scenario my form has two main sections the
> first is a datagrid the second is a series of textboxes
> which are initailly bound to the same full dataset and
> later depending on actions taken by the user are bound to
> the dataview I've figured out how to change the binding
> of the datgrid but am struggling to get the syntax
> correct for switching the binding of the textboxes
>



 
Reply With Quote
 
Steven Smith
Guest
Posts: n/a
 
      17th Dec 2003
Thanks Cor just had a look at that and some of the
samples look extremely useful but I can't find what I'm
looking for :s

One thing I do know for sure though is I'll never use
another connection wizard as long as I live this is the
first and last time. It looked like the best option at
the time but now seems pretty pointless if you want to do
anything other than just display data.

Regards Steve
 
Reply With Quote
 
One Handed Man [ OHM# ]
Guest
Posts: n/a
 
      17th Dec 2003
Hi Steve,

This might help.

Regards - OHM


http://www.codeproject.com/vb/net/da...ngconcepts.asp



Steven Smith wrote:
> Thanks Cor just had a look at that and some of the
> samples look extremely useful but I can't find what I'm
> looking for :s
>
> One thing I do know for sure though is I'll never use
> another connection wizard as long as I live this is the
> first and last time. It looked like the best option at
> the time but now seems pretty pointless if you want to do
> anything other than just display data.
>
> Regards Steve


Regards - OHM# (E-Mail Removed)


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      17th Dec 2003
Hi Steven,

I thought that the first sample from the window aplications does very much
what you where asking.

I did try it and I did add
Private dv as dataview

Then I changed everywhere
productInfo.Products in dv

The rows from the dataadapter I did rename back to
productAdapter.Fill(productInfo.Products)

And then added this row beneath it
dv = New DataView(productInfo.Products)

I think you have than your sample with a very simple dataview

Cor


 
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
threading, what different between DataGrid Binding to Binding TextBox mttc Microsoft Dot NET Framework Forms 3 19th Nov 2004 08:33 AM
Programatically setting the asp:textbox sarj Microsoft ASP .NET 1 11th Aug 2004 10:05 AM
binding subreports to a main report programatically mike Microsoft Access Reports 1 22nd Jul 2004 03:13 PM
Re: Password TextBox - Can't Seem To Set It Programatically So ***** Shows Empire City Microsoft C# .NET 1 27th Oct 2003 09:52 AM
Re: Password TextBox - Can't Seem To Set It Programatically So ***** Shows Empire City Microsoft C# .NET 1 26th Oct 2003 11:15 PM


Features
 

Advertising
 

Newsgroups
 


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