Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 26th, 2007, 09:57 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
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.
thanks

Reply With Quote
  #2 (permalink)  
Old January 27th, 2008, 02:44 AM
Registered User
 
Join Date: Jan 2008
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Oledb.OledbDataAdapterName.Fill(DatasetName)
End Sub

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

If DatasetName.HasChanges then
Oledb.OleDbDataAdapterName.Update(DatasetName)
End If
End Sub

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:41 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.