Solved

Edit Cells and Add & Delete rows in a DataGrid

Posted on 2009-03-29
3
266 Views
Last Modified: 2012-05-06
I'm trying to figure out how to update a cell in a datagrid and also how to add or delete rows so it's saved in Access.

I have the datagrid1 property options set to true for "AllowUserToAddRows and DeleteRows"

So, I need to be able to save the changes to the database.

I used the wizard to create the adapter and the dataset. It fills the the datagrid fine with the code below.

thanks
Imports System.Data.Oledb
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.FirstShift_ChecklistTableAdapter.Fill(Me.First_Shift_CheckSheetDataSet.FirstShift_Checklist)
    End Sub
End Class

Open in new window

0
Comment
Question by:Richard Kreidl
[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
3 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 24013772
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 24013783
Basically it's
YourAdapter.Update(YourDataSet)
 
0
 
LVL 2

Author Closing Comment

by:Richard Kreidl
ID: 31564074
thanks
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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

624 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