Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (21.62 KB, 1 trang )
Chapter 23 Quick Reference
To Do this
Create a connection to a
database graphically in
Visual Studio 2005.
Use the Data Source Configuration Wizard. The wizard
prompts you for the details of the connection to create and the
database objects to use.
Browse data in Visual
Studio 2005.
In the Data menu, click Preview Data. The Preview Data
dialog box allows you to select a DataSet and DataTable
object. Click the Preview button to view the data.
Change the way in which
a DataTable will be
presented on a form.
In the Data Sources window (click Show Data Sources on the
Data menu if this window is not displayed) click the
DataTable. Select the style (DataGridView, Details, or None)
from the drop-down menu that appears.
Modify the way in which
fields in a data source will
be displayed on a form.
In the Data Sources window, expand the DataTable
containing the fields to be modified. Click the field, and select
the presentation style from the drop-down menu that appears.
Add a DataTable to a
form.
Click and drag a DataTable object from the Data Sources