From 585b7bef0fe35f972541db6fa5db374d1002cfed Mon Sep 17 00:00:00 2001 From: "andreev.sergey" Date: Wed, 12 May 2021 10:30:04 +0300 Subject: [PATCH] Move the Data Binding Modes page --- .../bind-to-data/data-binding-modes.md | 35 +++++++++++++++++++ interface-elements-for-desktop/toc.yml | 4 +-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/data-binding-modes.md diff --git a/interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/data-binding-modes.md b/interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/data-binding-modes.md new file mode 100644 index 000000000..8c464725e --- /dev/null +++ b/interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/data-binding-modes.md @@ -0,0 +1,35 @@ +--- +title: Data Binding Modes +author: Anna Gubareva +--- +# Data Binding Modes + +The Report Designer works in one of the following data binding modes: + +* **Expressions** is the default binding mode. + + This mode enables you to specify complex [expressions](../use-expressions.md) that include two or more data fields, [report parameters](../shape-report-data/use-report-parameters.md), or [functions](../use-expressions/expression-syntax.md). You can also use expressions to [calculate summaries](../shape-report-data/calculate-summaries/calculate-a-summary.md) of any complexity or [conditionally shape your data](../shape-report-data/specify-conditions-for-report-elements.md). + + Click a property's marker to see whether the invoked context menu has the **PropertyName Expression** item that invokes the **Expression Editor**. + + ![Property Marker](../../../../images/eurd-win-binding-modes-property-marker.png) + + The **Expression Editor** allows you to use functions, access report bands and controls, and reference data source values in the constructed expression. + + ![Expression Editor](../../../../images/eurd-win-binding-modes-expression-editor.png) + +* **Expressions Advanced** is the advanced Expression mode. + + This mode enables you to specify an expression that is evaluated within a control's specific event. + + ![property-grid-expression-advanced-tab](../../../../images/eurd-win-binding-modes-expressions-advanced.png) + + The **Expression Editor** allows you to use event argument values in the constructed expressions. Event arguments are available in the [Variables](../use-expressions/expression-syntax.md) section. + + In the **BeforePrint** event, you can use data fields from all queries in the data source. + + ![Expression Editor for the BeforePrint event](../../../../images/eurd-win-binding-modes-data-fields.png) + + In the **PrintOnPage** event, data source fields are not available because data was fetched when this event occurs. You can use the event arguments that are available in the [Variables](../use-expressions/expression-syntax.md) section. + + ![Expression Editor for the PrintOnPage event](../../../../images/eurd-win-binding-modes-event-arguments.png) diff --git a/interface-elements-for-desktop/toc.yml b/interface-elements-for-desktop/toc.yml index 5ff567e54..56401dc6d 100644 --- a/interface-elements-for-desktop/toc.yml +++ b/interface-elements-for-desktop/toc.yml @@ -521,6 +521,8 @@ href: articles\report-designer\report-designer-for-winforms\bind-to-data\bind-a-report-to-a-transformation-based-data-source.md - name: Bind a Report to a Federated Master-Detail Data Source href: articles\report-designer\report-designer-for-winforms\bind-to-data\bind-a-report-to-a-federated-master-detail-data-source.md + - name: Data Binding Modes + href: articles/report-designer/report-designer-for-winforms/use-expressions/data-binding-modes.md - name: Create Reports href: articles/report-designer/report-designer-for-winforms/create-reports.md items: @@ -887,8 +889,6 @@ items: - name: Expression Syntax href: articles/report-designer/report-designer-for-winforms/use-expressions/expression-syntax.md - - name: Data Binding Modes - href: articles/report-designer/report-designer-for-winforms/use-expressions/data-binding-modes.md - name: Use Report Scripts href: articles/report-designer/report-designer-for-winforms/use-report-scripts.md - name: Print, Preview and Export Reports