476 Part IV Database and Web Programming
Remove columns from a data grid view object
- Open the DataGridView Tasks list again, and then click the Edit Columns command.
You see the following Edit Columns dialog box:
You can use the Edit Columns dialog box to add or remove columns from those
displayed by the data grid view object. (As you’ll learn later in the chapter, you also use
this dialog box to change the properties of the FacultyDataGridView object .) Right now,
you want to remove the ID and Faculty ID columns.
Note Although you are removing the ID and Faculty ID columns from the data grid view
object, they still exist in the underlying Faculty2010 .accdb database.
- Click the ID column in the Selected Columns list box, and then click the Remove button.
- Click the Faculty ID column, and then click the Remove button.
Visual Studio removes both columns from the list.
- Click OK to confirm your change, and then press the ESC key to close the DataGridView
Tasks list.
The FacultyDataGridView object appears again, but without the ID and FacultyID
columns. You now have more room on the form to display database information.