473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BindingContext - question

I read some example . there are two different syntax to bind the textbox.
1) Me.txtCompanyName.DataBindings.Add("text", dtTable, "companyname")
2) Me.txtBillingName.DataBindings.Add("text", dsDataSet,
"myTable.companyname")

Which one is correct ??
Thanks
Nov 20 '05 #1
2 1019
Hi,

Both

Ken
-------------------
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:OZ**************@TK2MSFTNGP11.phx.gbl...
I read some example . there are two different syntax to bind the textbox.
1) Me.txtCompanyName.DataBindings.Add("text", dtTable, "companyname")
2) Me.txtBillingName.DataBindings.Add("text", dsDataSet,
"myTable.companyname")

Which one is correct ??
Thanks

Nov 20 '05 #2
As i use (1), it is fail to move the position of record, i think it is fail
ar
"Ken Tucker [MVP]" <vb***@bellsouth.net> ¦b¶l¥ó
news:eQ**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
Hi,

Both

Ken
-------------------
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:OZ**************@TK2MSFTNGP11.phx.gbl...
I read some example . there are two different syntax to bind the textbox.
1) Me.txtCompanyName.DataBindings.Add("text", dtTable, "companyname")
2) Me.txtBillingName.DataBindings.Add("text", dsDataSet,
"myTable.companyname")

Which one is correct ??
Thanks

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1272
by: Carl | last post by:
Hi, I am trying to figure out the best approach for this simple scenario. I have one C# Windows application Form that consumes few web services for all data related function. In this form...
1
3297
by: D. Yates | last post by:
Hi, I retrieved the employee table from the Pubs database into a single dataset called, dataSet12. I dropped two textbox controls and a datagrid control onto the same form and bound the...
0
1804
by: Nathan Carroll | last post by:
Attempting to eliminate flicker showing (form) and hiding seems to have no effect as I have it below. if I move the lines: Me.Show() Me.ShowInTaskbar = True f.Close() to the end of the...
1
7560
by: Edwin | last post by:
Hi, I created a dataform with the data form wizard which created some textboxes and 1 checkbox. When I add a row (see section "Add Row" for code) the newly added is not accessible. A label...
0
1067
by: Donald | last post by:
Mostly, I get the currencymanager from the form.bindingcontext property. but I found that I can aslo get the same currencymanager from a textbox.bindingcontext, even though this textbox does not...
0
1381
by: nina98765 | last post by:
Hi all I have a data-bound Windows form bound to a strongly-typed dataset. Upon opening the form, I would like to Find a specific record based on a parameter I've passed to the form, and display...
4
1526
by: graham | last post by:
Hi all, I have a strange one, and being new to .NET, not sure if this is a bug and whether there is a work around. I have a form with databound textboxes.. In me general decs... Dim...
6
2223
by: Aaron Smith | last post by:
I have a form, oddly enough the same one with the expression column that is giving me a headache, and on this form I have a dataset that has a couple of tables in it that are related. If I do a...
2
1988
by: JohnR | last post by:
I have a question on bindingcontext, bindings, and controlbindingscollection. I understand the very basic idea, and I think I should be able to do this, but I'm not sure how. First problem: I...
6
12117
by: MeowCow | last post by:
I have created a UserControl that encapsulates a third party data grid. My goal was to create my own DataSource and DataMember properties that forward the binding to the third party grid, then use...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.