Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problems Saving Datagrid View Changes

Posted on 2009-05-15
2
Medium Priority
?
382 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

604 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