<< Click to Display Table of Contents >>

 

You can use the following approaches to include a data source's information in your report:

Use the Field List

Use the Smart Tag

Use the Property Grid

After you bind your report to data, the Field List panel displays the data source's hierarchy and provides access to the available data fields.

Drop a data field from this panel onto a report's surface to create a new report control bound to the corresponding field.

eurd-win-field-list-drop-fields

Drop a data field onto an existing control to bind this control to the corresponding field.

eurd-win-field-list-drop-field-to-control

You can do one of the following to create a data-bound control of a specific type:

Hold down the SHIFT key and drop a data field onto a report's surface.

Right-click a corresponding data field and drop it onto a report's surface.

This invokes a context menu that enables you to select which control to create.

eurd-win-fieldlist-create-specific-contols

You can also drop an entire data table onto a report to create a Table control with its cells bound to the corresponding data table fields.

eurd-win-field-list-drop-table

To select multiple fields in the Field List, hold CTRL or SHIFT and click the fields. Drop these fields onto a report to create a new table.

design-time-field-list-drop-multiple-fields

Click a control's smart tag, expand the Expression drop-down list and select a data field.

eurd-win-label-bind-to-data-field

You can also click the Expression option's ellipsis button to invoke the Expression Editor. This editor allows you to construct a complex binding expression with two or more data fields and various functions. See Expression Language for more information.

eurd-win-label-expression-binding

Click a property marker to see whether the invoked context menu has the PropertyName Expression item.

eurd-win-property-grid-data-binding

Click this item to specify an expression in the invoked Expression Editor.

WinFormsPropertyGrid-ExpressionEditor

You can use the same approach to specify expressions for all the control properties. See Shape Report Data for more tutorials.