

The DataGridView control is connected, or bound, to underlying data access components through the its BindingSource property.
#VISUAL BASIC DATA GRID CONTROL HOW TO#
Finally, you'll learn how to adjust DataGridView properties, including the ReadOnly property that allows or prevents a user from saving changes back to the original database. Next you'll move on to sorting records in grid objects and learning how to manage multiple grids and navigation bars on a form. You'll start by filling a simple data grid view object with text records from the database, and then you'll set a few formatting options. In this chapter, however, you'll focus on the ability of the DataGridView control to display the colums (fields) and rows (records) of the Students.mdb database, the file of structured student information that you started working with in Chapter 18. A DataGridView control can be used to display any type of tabular data: text, numbers, dates, or the contents of an array. The DataGridView control presents information by establishing a grid of rows and columns on a form to display data as you might see it in a program such as Microsoft Excel or Microsoft Access. Using DataGridView to Display Database Records
