473,465 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

BindingManagerBase.EndCurrentEdit doesn't end the current edit

I have a data entry form with a grid. When the user changes data in a
column, and then clicks the Red X of the form to close it, I trap this in the
Closing event. I first call the BMB.EndCurrrentEdit, and then call code to
save the data.

The issue is that the data of the current cell in the grid is lost dispite
all of the above. If the user takes any other action first before closing
the form, then all is OK. But if he goes right to the close button, it is
lost lost lost.

Is there something I am missing here that will flush the data down?
--
Greg Gum
Nov 17 '05 #1
1 3174
Try calling grid.EndEdit(). This should commit any changes to the
CurrencyManager.

Pete
"Greg" <Gr**@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
I have a data entry form with a grid. When the user changes data in a
column, and then clicks the Red X of the form to close it, I trap this in
the
Closing event. I first call the BMB.EndCurrrentEdit, and then call code
to
save the data.

The issue is that the data of the current cell in the grid is lost dispite
all of the above. If the user takes any other action first before closing
the form, then all is OK. But if he goes right to the close button, it is
lost lost lost.

Is there something I am missing here that will flush the data down?
--
Greg Gum

Nov 17 '05 #2

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

Similar topics

15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
0
by: Iris Karbstein | last post by:
Hi NG, I have a form for input, with textboxes and Comboboxes. When closing the form with an OK Button the changes are in the underlying DataTable to be taken over. I realized this as follows:...
0
by: Peter | last post by:
Hi, I'm developing a program in MDI style I've got 2 froms MDIForm (parent form) Form2 (child form with dataGrid1 and myDataSet)
0
by: Johann Blake | last post by:
Can someone explain the conditions/events by which the Framework executes the EndCurrentEdit internally when a control (such as a textbox) is bound to a dataset? It appears that unless this method...
4
by: Jesse Villani | last post by:
I will get this eventually, I have a combobox on a form which is bound to a dataset and displays correct values in the list. When i select a value from the list, i check to see what is the...
6
by: Jan Nielsen | last post by:
Hi I asked this question some weeks ago, but have found no soluion yet, so I try again I have a parent detail relationship between two tables. The detail records are shown in a datagrid...
0
by: johnb41 | last post by:
I have a simple form with textboxes displaying records from a dataset. To Add a record, i simply do this (successfully): ' bmb variable holds the me.bindingcontext(dataset, "table"), which...
1
by: dbuchanan52 | last post by:
My newly added row will not become current. I have several textboxes bound to a DataGrid1 and a couple of buttons including 'btnNewRecord'. The datagrid is bound to a table in a dataset. What...
3
by: Aspnot | last post by:
I have a form that is setup in a Master/Detail configuration. The Detail section is represented with a DataGridView. Some of the columns in this DataGridView control are unbound. When a user...
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
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,...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.