Solved

Problems Saving Datagrid View Changes

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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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