473,398 Members | 2,113 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,398 software developers and data experts.

BindingSource and EndEdit

Echooff3
I'm totally mystified!

I have a form with fields that are databound to a bindingsource. (bindingsource is attached to a datatable and so on and so on.) Everything updates fine except for one field (PRICE). Everytime I call EndEdit on the bindingsource it always reverts back to the inital value that was created when the record was created.

I've checked the dataset time and time again and the PRICE field is:
Unique: False
AllowNulls: True
ReadOnly: False

Anyone else expierence a simular issue?
Nov 15 '07 #1
1 2182
Shashi Sadasivan
1,435 Expert 1GB
I'm totally mystified!

I have a form with fields that are databound to a bindingsource. (bindingsource is attached to a datatable and so on and so on.) Everything updates fine except for one field (PRICE). Everytime I call EndEdit on the bindingsource it always reverts back to the inital value that was created when the record was created.

I've checked the dataset time and time again and the PRICE field is:
Unique: False
AllowNulls: True
ReadOnly: False

Anyone else expierence a simular issue?
Yes, i have had a few nightmares with that.
Depends when and where do u call the endEdit?

If you call if when the focus leaves the control, then it will revert back to the previous value.

i generally try to keep it on the click of a button. or when some other control gains focus.
Nov 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Daniel R. Rossnagel | last post by:
To determine from assembly whatever bindingsource has the form that uses this assembly and to obtain a listing of such
1
by: Mike | last post by:
I have the following: 1 x .NET 2.0 .DLL Containing one public DataSet (CustomerHandler) which contains one table and a tableadapter to fill a datatable 1 x .NET 2.0 EXE With a single...
1
by: Leonardo | last post by:
Hi. I'm trying to build my first application with database access using VB 2005. I'm a VB 6 programmer and learning everything again has been challenging. I managed to write a code using some tips...
5
by: giannis | last post by:
I am a newbie with VB. I'm trying to add a new row to my database using the BindingSource. I use the AddNew() and EndEdit() methonds but my changes dont saved at my database ... What is wrong ?...
6
by: BD | last post by:
Hi, I have a "Cancel" button on a form to cancel any changes in the current item with the code BindingSource1.CancelEdit but this don't restore the older's values that had been changed. The...
2
by: Rob Dob | last post by:
How do I determine if there are any rows within the BindingSource that have changed prior to calling the EndEdit(). I need to do this in order to archive some records and if I call the EndEdit()...
3
by: msnews.microsoft.com | last post by:
Greetings I have a a simple application with 1 form. On my form I use a BindingSource to bind a database table to a "table (gridDataView)" (one in the database, one on my form, 2 different...
2
nev
by: nev | last post by:
I'm trying to learn how to save changes in my BindingSource. What is Me.Validate()? And do I need it everytime I do save the bindingsource? Is this correct? me.validate() '<-- What is this for?...
3
nev
by: nev | last post by:
my textbox displays "hello" i change the value of textbox through code like this: textbox.text = "" then i do: bindingsource.endedit() tableadapter.update(dataset.datatable)
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.