?
Solved

Problems Saving Datagrid View Changes

Posted on 2009-05-15
2
Medium Priority
?
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 2000 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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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