Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 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 April 26th, 2007, 06:30 AM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Populating a DataGridView

Hi,

I want to populate a DataGridView that I am using in my form. I have a form with a text box, a button and a DataGridView control. I want that when I enter a string in the text box and click the button, matching records from a table in my access DB should be displayed in my DataGridView.
Any ideas on how to do this ???
Any help wud be much appreciated.

Regds
Sagar
 
Old April 26th, 2007, 07:00 AM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

Since you are using Access as the back end, you will need the following namespace added to your form by inserting the following:

Imports System.Data.OleDb

Next, read up on the use of the following data objects and properties:

1.) OleDbCommand
2.) OleDbDataAdapter
3.) Dataset
4.) DataGridView.DataSource

Your post is very general in nature. If you are trying this for the first time you will generate many more questions before you are done.

Good luck.




Best Regards,
Earl Francis
 
Old April 26th, 2007, 07:03 AM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thnx Earl !!! Yes you got it rite, it was a very general query and I am just starting off with VS2005 and working on a live project. I am on my way to get some info abt the above listed points.. Thanx again...cheers !!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem populating DataGridView MacDevv C# 2005 0 May 6th, 2008 08:50 AM
DataGridView Sakkaw C# 2005 1 January 9th, 2007 12:06 PM
DataGridView akumarp2p C# 2005 1 December 30th, 2006 12:40 PM
Need Help with datagridview maximus101 VB Databases Basics 2 September 19th, 2006 10:49 AM
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.