473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

BindingContext - Textbox bug?

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 bmbLinkMAN As BindingManagerBase

In my form load I have..

bmbLinkMAN = Me.BindingContext(dsLinkMAN_client_trans_1, "client_trans")

And my text boxes have the binding data in them..
e.g. txtpath has he correct databindings..

When I try to add a row - by performing a bmbLinkMAN.AddNew()

I then try to assign a default value to the field by doing

txtpath.Text = path

When I hover over the field AND the txtpath.Text code in debug, it does show
the value. But the textbox at no time shows any contents.
Is there a databing issue here?

If anyone knows of this problem/workaaround/what I;m doing wrong.... I'd
appreciate any help.

Thanks,
Graham
Nov 20 '05 #1
4 1523
Hi Graham,

Are you sure this is not the normal repeatly asked question about:

BindingContext(ds.Tables(0)).EndCurrentEdit()

When the data is in the textbox and the focus is still on it, there has not
been binding yet happen.

I hope this helps a little bit?

Cor
Nov 20 '05 #2
Hi Graham,

Are you sure this is not the normal repeatly asked question about:

BindingContext(ds.Tables(0)).EndCurrentEdit()

When the data is in the textbox and the focus is still on it, there has not
been binding yet happen.

I hope this helps a little bit?

Cor
Nov 20 '05 #3
Yep, that was it Cor. Thanks.

I did find the solution elsewhere - but I guess this is a common NewB
question.... now, if only there was a definitive FAQ site...... ;-)

Thanks again,
Graham
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...
Hi Graham,

Are you sure this is not the normal repeatly asked question about:

BindingContext(ds.Tables(0)).EndCurrentEdit()

When the data is in the textbox and the focus is still on it, there has not been binding yet happen.

I hope this helps a little bit?

Cor

Nov 20 '05 #4
Yep, that was it Cor. Thanks.

I did find the solution elsewhere - but I guess this is a common NewB
question.... now, if only there was a definitive FAQ site...... ;-)

Thanks again,
Graham
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...
Hi Graham,

Are you sure this is not the normal repeatly asked question about:

BindingContext(ds.Tables(0)).EndCurrentEdit()

When the data is in the textbox and the focus is still on it, there has not been binding yet happen.

I hope this helps a little bit?

Cor

Nov 20 '05 #5

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

Similar topics

1
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
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...
0
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...
12
by: ABC - Sébastien Beaugrand | last post by:
Hi, I've been trying to get an answer from french newsgroup but I did'nt succeed in this, so I'll try on this group and sorry for my poor english. The description of the bug : The...
0
by: graham | last post by:
Hi there, Can anyone help me with a definitive solution to the problem I have. I know this is much revisitied ground, and I have read a number of articles.. but I still can;t get this binding to...
4
by: Agnes | last post by:
My form got over 30 textbox, some textbook suggest to use Bindingcontext method. to addnew/update. However, some other box didn't mention 'bindingcontext', it gives me a simple sample by using...
6
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
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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,...

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.