473,372 Members | 840 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,372 software developers and data experts.

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 2221
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...

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.