MX-Frame Library Send comments on this topic.
ReportViewer
MX-Developer > User Interface - MxPart > Controls > ReportViewer

Glossary Item Box

Control is intended for binding MxReport component with a user interface. With ReportViewer controls it is possible to use the same report many times but display or fill them with different data. It is also possible to use the same data but display them in two different reports but on the same user interface.

Control has many properties that define its appearance, design, behaviour etc.

Context Properties

Properties in this section define the appearance of the control in Personalization Directory and the behaviour of the control when in edit mode.

Property Description
Category Define the name by which the control is displayed in Personalization Directory.
Entity Defines the name of the group in which the control is located in Personalization Directory.
NavigationVisible The feature is obsolete.
TrackDirty Defines whether user interface can be closed while the control is in edit mode.

Data Properties

Properties in this section define how and which data is bound to the control.

Property Description
Adapter Defines the MxAdapter component from which data can be retrieved and used for any kind of manipulation.
DataSourceName Defines the data source which will be used to display and manipulate data.

Design Properties

Properties in this section define basic properties of the control, appearance and functionality of the control.

Property Description
Name Defines the name of the control or the component.
ReportType Defines the predefined MxReport component.

NOTE: Properties described here are related exclusively to Mx Controls. For the description of other properties please see Developer Express documentation.

Example (MxSpace)

To see the implementation of ReportViewer control open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click WoBomReportPart.cs. See the ReportViewer control used for binding reports, data and user interface.

To implement ReportViewer control

  1. In Solution Explorer open the desired MxPart component (WoBomReportPart) and add ReportViewer control from the Toolbox on the canvas.
  2. Select the control and open Property Window.
  3. In ReportType property of the control select the desired report (MxSpace.Reports.WorkOrderBomReport).
  4. In Adapter property select adapter which provides data for the report.
  5. In DataSourceName property select the data source which provides data for the report.
©2009 Metronik. All Rights Reserved.