Datasheet
Figure 1-36: The Data menu holds commands that deal with datasets.
The following list describes commands shown in Figure 1-36:
❑ Show Data Sources — This command displays the Data Sources window, where you can work
with the program’s data sources. For example, you can drag and drop tables and fields from this
window onto a form to create controls bound to the data.
❑ Preview Data — This command displays a dialog that lets you load data into a
DataSet and
view it at design time.
❑ Add New Data Source — This command displays the Data Source Configuration Wizard, which
walks you through the process of adding a data source to the project.
❑ Add Query — This command is available when you are designing a form and have selected a
data bound control such as a
DataGridView or bound TextBox. This command opens a dialog
where you can specify a query to add to the form. This places a
ToolStrip on the form contain-
ing
TooStripButton that populates the bound control by executing the query.
Format
The Format menu, shown in Figure 1-37, contains commands that arrange controls on a form. The fol-
lowing list describes the Format menu’s submenus:
34
Chapter 1
571982 ch01_2.qxd 1/19/06 1:15 PM Page 34