VB2019 VB2017 VB2015 VB2013 VB2012 VB2010 VB2008 VB6 VB Sample Code 中文VB About Us

Lesson 26 Managing Database with DataGrid Control


In the previous lesson, we use textboxes or labels to display data by connecting them to a database via Microsoft ADO data Control 6.0. The textbox is not the only control that can display data from a database, many other controls in Visual Basic can display data. One of them is the DataGrid control. DataGrid control can be used to display the entire table of a recordset of a database. It allows users to view and edit data.

DataGrid control is not the default item in the Visual Basic control toolbox, you have to add it from the VB6 components. To add the DataGrid control, click on the Project on the menu bar and select components to access the dialog box that displays all the available VB6 components, as shown in the diagram below. Select Microsoft DataGrid Control 6.0 by clicking the checkbox beside this item. Before you exit the dialog box, you also need to select the Microsoft ADO data control so that you are able to access the database. Last, click on the OK button to exit the dialog box. Now you should be able to see that the DataGrid control and the ADO data control are added to the toolbox. The next step is to drag the DataGrid control and the ADO data control into the form.

To learn the details of using DataGrid control, we suggest you obtain a copy of Visual Basic 6 Made Easy.

ISBN:141962895X

Price: $20.00

AUTHOR: DR. LIEW VOON KIONG

VISUAL BASIC 6 MADE EASY is an eBook written by our webmaster, Dr.Liew.  It was used as a textbook by the University of Wesleyan. You can use this book as a textbook for your VB course or project.

Preview the book

By reading this book, you can:

  • Understand the basic concepts of Visual Basic 6 programming
  • Create your own VB6 programs right from the beginning
  • Get programming ideas from many interesting sample programs. The sample programs include star war, snakes and ladders game, reversi, home loan calculator, BMI calculator, library system, calculator and more.
  • Modify the codes easily to suit your needs.

You can also use the book in many ways, such as:

Order this book and you can Download the FREE Source Codes for the sample VB6 programs illustrated in this book. Click the Order button below to get your e-book and the free stuff.


You need PayPal account to order our E-book. If you don't have PayPal Account, get your PayPal account by clicking the banner below:

Sign up for PayPal and start accepting credit card payments instantly.

*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment.

Mode of Delivery: Download

Warmest Regards

(Dr.Liew)

Disclaimer

This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by Microsoft, nor have they been reviewed tested or certified by Microsoft.

Contact Information

If you require assistant and technical support, please contact:Admin


Copyright©2008 Dr.Liew Voon Kiong. All rights reserved |Contact|Privacy Policy