#### Step 2: Insert Expressions

Previous Step

In this step, you will finalize your header by adding in expressions into some of the cells of the GridControl. Expressions are special commands that pull information on the fly from the database into your report. This step will show how expressions can display the report type, the part name, and the operator.

1. If you haven't already done so, select and then double-click to activate GridControl0 on the main canvas.

2. Click on the blank cell to the right of the cell with the "Report Type:" text (column 2, row 1). It will turn blue. Right-click on the cell. This brings up the Grid Property dialog box.

Grid Property dialog box

3. Notice that the Cell type is currently set to Text. We want to change the properties for this cell so that it can display expressions, specifically an expression that will display the report type.

4. So, change the Cell type to Expression. This enables the Cell expression list.

5. In the Cell expression list, select the =TextReportType expression.

6. Click Apply and then OK to close the Grid Property dialog box. The expression now appears in the cell.

7. Click on the empty cell to the right of the "Part Name:" text.

8. Follow steps 4-6 again only this time, set the expression to =PartName.

9. Click on the empty cell to the right of the "Operator:" text.

10. This time, simply type the expression. Type "=Operator" (without the quotes). When you directly type an expression as text into a GridControl cell or other supported control, Template Builder recognizes and uses the expression as expected.

Now that you've gone through these steps to add expressions into the cells, your final header should look like this:

Header with Expressions

In this step you have learned what expressions are and how to insert them into a template's GridControl.

In the next step you will add a specific report type control to your report template that defines the type of template.

Next Step