Wrox Programmer Forums
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 26th, 2007, 09:57 AM
Registered User
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default datagridview help

im so new to all of this, that it is good for me to even find this place, he :)
please, i have datagridview, conected with access database, and that is all fine, but what, i need code that make it work, hmm, i dont know how text from datagridview cell save into database, than i dont know how :( to find is it my checkbox true or false ... please i would apreciate any help, i seem not to be able find it my self.

Old January 27th, 2008, 02:44 AM
Registered User
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

After that you have created an Oledb Dataadapter and connected it properly to the Database and then right clicked the Oledb Adapter and selected 'Generate Dataset' and then bound the Datagrid to the Dataset then use the following code to update the database. You need to replace the names with the names you gave for the dataset and the oledb adapter.

- Tsadok

Public Class form1
Inherits System.Windows.Forms.Form

Private Sub Form1_Load(ByVal sender as System.Object, _
ByVal e As System.EventArgs) handles MyBase.Load

End Sub

Private Sub btnUpdate_Click(ByVal sender as System.Object, _
ByVal e As System.EventArgs) handles UpdateButtonName.Click

If DatasetName.HasChanges then
End If
End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
DatagridView in C# velan C# 2005 0 June 8th, 2007 09:25 PM
datagridview thirumalai ASP.NET 1.0 and 1.1 Professional 1 April 7th, 2007 03:35 AM
DataGridView Sakkaw C# 2005 1 January 9th, 2007 12:06 PM
DataGridView akumarp2p C# 2005 1 December 30th, 2006 12:40 PM
datagridview ScottSheck Visual Basic 2005 Basics 0 June 14th, 2006 11:07 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.