Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

Chapter 19 Data Presentation Using the DataGridView Control 473


As you can see, the data grid view object does not contain any information at this
point, and it is probably not the right size either. (My data grid view object is not wide
enough to display all eight columns, for example .) However, you can clearly see that
Visual Studio has organized the Faculty table in the data grid view so that its fields
appear as columns and its rows represent individual records. A blank row is reserved for
the first record in the table, and additional rows will be added as soon as the program
is run and the data grid view is filled with data.


  1. Move and resize the data grid view object so that you can see as many columns as
    possible and there is ample room for at least 10 rows of data.
    Depending on how your screen resolution is set, you may need to hide some of the
    programming tools in the IDE to accomplish this, or use the Visual Studio IDE scroll bars
    that appear when you work with large application windows.

  2. Use the Properties window to set the form’s Text property to “The Faculty Table .”


Your form looks similar to the following:
Free download pdf