Solved

Problems Saving Datagrid View Changes

Posted on 2009-05-15
2
376 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

867 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

22 Experts available now in Live!

Get 1:1 Help Now