- Version
- Download 185
- File Size 16.61 KB
- File Count 1
- Create Date May 5, 2016
- Last Updated May 5, 2016
Load records from database to Data Grid
Load records from database to Data Grid
The DataGrid control is a spreadsheet-like bound control that displays a series of rows and columns representing records and fields from a Recordset object.
The concept of this program is the same as on how to populate or load records from database to the listview control.
1. Established a connection to the database (connection string)
2. Define SQL statement
3. Establish the data source of the data grid
4. Run the application
Data grid and Listview control shares a similar function; it is to display the records in the database in a tabular format.
You are free to choose which control (data grid or listview) to use and where you are familiar with.