Solved

Problems Saving Datagrid View Changes

Posted on 2009-05-15
2
375 Views
Last Modified: 2013-11-08
I have a windows forms probject that I am working on that uses a datagridview control and is populated using and datatable from a MS Access database.   I can populate the grid with issue.  The problem is that if a user entered and new row in to the grid and then clicks save...none of the data in the new row gets saved.   A new blank row appears in the database but it does not have any data.

It appears that the new row when entered does not get refreshed unless the user specfically clicks elsewhere in the grid.   I have been reading on the website about other who have had this problem and it appears that it is not so much of a programming or application flow of operation when using the grid.

I cant find any solutions to this problem and was hoping to find someone who has come across this and find a good solution.
0
Comment
Question by:Mike_Stevens
2 Comments
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 500 total points
ID: 24397138
try this

When you are about to click save move the focus out of grid view
0
 

Author Comment

by:Mike_Stevens
ID: 24397448
Good idea....that seems to work
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now