Solved

Edit Cells and Add & Delete rows in a DataGrid

Posted on 2009-03-29
3
259 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:rkckjk
  • 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:rkckjk
ID: 31564074
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 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

19 Experts available now in Live!

Get 1:1 Help Now