By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 853 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

Binding TextBox programatically

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
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

Nov 20 '05 #2

P: n/a
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
Nov 20 '05 #3

P: n/a
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# On**********@BTInternet.com
Nov 20 '05 #4

P: n/a
Cor
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
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.