Now that you’ve seen how to display an entire database table in a
DataGridView, we show how to perform several different queries and display the results in a
DataGridView. This app only reads data from the entity data model, so we disabled the buttons in the
BindingNavigator that enable the user to add and delete records. Later, we’ll explain why we do not support modifying the database in this example.
The Display Query Results app (Fig. 22.21) allows the user to select a query from the
ComboBox at the bottom of the window, then displays the results of the query.