Defines the type of the view used in the control.
Remarks
Property specifies the view in which the data will be displayed in the control. Several different types of view exist, each appropriate for a specific type of data and user requirements. It is possible to display data in ordinary, plain table or to present data with cards. It is also possible to create custom created view which is designed from scratch.
Each view has its own style of presenting data.
View | Description |
---|---|
Default | This control provides a two-dimensional representation of data from the data source in grid format. Columns represent data set fields and ordinal rows represent data set records. In addition to representing data in column and row format, grid views supports data grouping, sorting, filtering, and allows the display of total summaries, group summaries and preview sections. Most of these data representation features can be applied by end users at runtime. For this purpose, grid views provide specially designed context menus. |
Card |
Card views represent each individual data source record using a card. Data fields are represented by card fields. A card consists of vertically arranged card fields each of which represents the value of a field in the current record. A card can also have a caption which usually represents its ordinal number or a field value. Adjacent cards are separated by card separators. End-users can drag separators in order to change the widths of the cards. Card field represents a single data source field and a field value in a card. Card fields are vertically arranged within a card. Each card field consists of two regions; field caption (displays the string representing the field name) and field value cell (represents a field value using an appropriate in-place editor). |
Band | Represents a view that displays data in a tabular form and allows grouping of columns into bands.
The banded grid view control provides the same data representation facilities as the default grid view. Additionally, banded grid views allow columns to be arranged into bands. Visually, bands are represented by their headers which are displayed over headers of columns, belonging to the band. Bands do not only provide visual information structuring. End users can also drag band headers to rearrange bands or to hide them, thus performing operations on a group of columns at once. Bands can be arranged into a tree. In order for band view to work correctly, each schema's field has to have some value specified in property Category. |
AdvancedBand | Represents a view that displays data in a tabular form, allows grouping columns into bands and supports complex data cell arrangements.
The advanced banded grid view control provides the same data representation features as its ancestor banded grid view. Additionally, it is possible to apply different heights to column headers and to arrange them into rows. The column headers layout specifies the data cells layout within data rows. In order for advanced band view to work correctly, each schema's field has to have some value specified in property Category. |
Layout | If Layout view type is selected, the custom editor, defined in ViewEditor property, is used to present the data. Using custom editor user can specify his own appearance of the control. This provides alternative to other predefined types of views. |
Example (MxSpace)
To see the defined View property on a control (GridEdit) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click WorkOrderManagePart.cs. Click the GridEdit control for displaying work orders and open Property Window. See the value Band defined in View property.
To define Band property
- In Solution Explorer open MxPart component (WorkOrderManagePart) which contains the control (GridEdit).
- Select the desired control (GridEdit) on the canvas.
- Open Property Window.
- In section GridProperties in View property select the desired value (Band).
MxAdapter
Designing a Field
MxPart
ViewEditor