Field List (Visual Studio Report Designer)
- 2 minutes to read
The Field List panel displays a tree view with data sources, available fields, calculated fields, and report parameters.
Right-click a node to invoke the context menu and select an action. The following image shows an action that allows you to add sqlDataSource1
to the Report Gallery and reuse it in other reports:
The Field List allows you to perform the following tasks:
Search Fields
Enter a string in the search field. The Field List filters fields and tables to match an input string.
The Field List filters fields and tables only within the previously expanded nodes.
Bind Controls to Data
Drop a field onto the report surface to create a new report control bound to that field.
Drop a field onto an existing report control to bind that control to the field.
Hold down the Ctrl key when you drop a field on top of an existing control to retain the control’s data binding settings. This action creates a new data-bound report control.
Select the Type of Control to Create
To select the type of control when you create it, do one of the following:
- Hold down the
Shift
key as you drop the data field onto the report surface. - Right-click a data field, and drag and drop it onto the report surface.
This action invokes a context menu where you can choose which control to create.
Create Tables
Drop an entire data table onto the report surface to create a table with columns bound to the data table fields.
Hold down the Ctrl
key and select multiple data fields in the field list. Drag these fields onto the report to create a report table that contains only the selected fields.
If you hold down the Shift
key or right-click the fields, and then drag the selected fields to the report surface, a new table is created with cells that display the names of the selected fields.
Add Calculated Fields
You can add calculated fields to the data source.
Add Report Parameters
You can add report parameters or change existing parameters.