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

Home Posts Topics Members FAQ

EndEdit not working

Gav
Hi all,

I have a Datagrid and a save button if I change a value in a cell in the
datagrid and hit the save button, it does not write the new value into the
database. If I move the focus away from the cell and then click save I get
the new value in the DB.

Is there a way I can get the new value without having to focus another cell
before saving?

I have tried looping through all the rows in the dataset and calling
EndEdit() but it doesn't make any difference.

Any help would be much appreciated.

Thanks
Gav
Jul 22 '05 #1
2 2228
Hi Gav

I use a third party DataGrid, XtraGrid, but had a similar problem. I had to
call a grid command: gridView.PostEditor, before row.EndEdit() would work.

Hope this helps
Clare

"Gav" <sp**@spam.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
Hi all,

I have a Datagrid and a save button if I change a value in a cell in the
datagrid and hit the save button, it does not write the new value into the
database. If I move the focus away from the cell and then click save I get
the new value in the DB.

Is there a way I can get the new value without having to focus another cell before saving?

I have tried looping through all the rows in the dataset and calling
EndEdit() but it doesn't make any difference.

Any help would be much appreciated.

Thanks
Gav

Jul 22 '05 #2
Hi Gav,
Iterating through all the rows works fine. Did you use BeginEdit() before
using EndEdit().

"Gav" wrote:
Hi all,

I have a Datagrid and a save button if I change a value in a cell in the
datagrid and hit the save button, it does not write the new value into the
database. If I move the focus away from the cell and then click save I get
the new value in the DB.

Is there a way I can get the new value without having to focus another cell
before saving?

I have tried looping through all the rows in the dataset and calling
EndEdit() but it doesn't make any difference.

Any help would be much appreciated.

Thanks
Gav

Jul 22 '05 #3

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

Similar topics

3
by: Allan Bredahl | last post by:
Hi All I have a bit of a problem with using a datarow to store data that is show in a form. On form load I set the Value/Text properties of my form elements to the specific Column values of...
2
by: Gav | last post by:
Hi all, I have a Datagrid and a save button if I change a value in a cell in the datagrid and hit the save button, it does not write the new value into the database. If I move the focus away...
3
by: Bryan | last post by:
I am calling BindingList.EndEdit during a 'TextChanged' sub for a texbox. In theory, the key should be pressed changing the value in the text box, the EndEdit call should append the changes to the...
0
by: Frank | last post by:
Hello, in the formClosing event I put an endEdit for the datagridview. Works fine. Except when the cursor is on the line for a new record. That gives errors because some fields are not filled (and...
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()...
0
by: John Sheppard | last post by:
Hello there, I have a checked list box which I am trying to save to my dataset. The last tickbox I edit before saving, doesnt actually get saved to the underlying binding source. I have...
5
by: Anil Gupte/iCinema.com | last post by:
I have the following code: Dim strContentInfo As String = "ContentID='" & CUID & "'" Dim drContentInfo As DataRow() = GlobalDataSet.Tables("PaidContent").Select(strContentInfo) <Some other...
1
by: Marc | last post by:
I found this in MSDN: "The BeginEdit method is called implicitly when the user changes the value of a data-bound control; the EndEdit method is called implicitly when you invoke the...
0
by: Greg Wright | last post by:
I had the same problem and found that if I set Virtual = false, then the glyph went away after doing the EndEdit() function. I didn't have to do an EndEdit at all after that to get the Pencil gliph...
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
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...
1
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
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.