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.
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.
By reading this book, you can:
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.
*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