To provide flexibility, the Grid View offers the Template Field, which renders using a template.
A template can include a mix of static HTML, Web controls, and databinding syntax.
We will have our Table Adapter use stored procedures instead of ad-hoc SQL statements so that our customizations aren t lost when the Table Adapter Configuration wizard is used. The Northwind database does not have any computed columns so we will need to add one ourselves.
A Check Box Field can only display a single checkbox, whereas an Image Field can only display a single image.
As an example, a time tracking data model might have a table named , among others.
While the amount due per service item (being the rate multiplied by the duration) could be calculated through a web page or other programmatic interface, it might be handy to include a column in the queries will reappear if the wizard is re-run.
Notice that the unbound column in the list is grayed out.
Click on the "Controls" node and press the asterisk (*) on the numeric keypad of your keyboard. You will see the Data Grid View and the four columns in the grid.