Create Grids

XML Forms Guide

Version
R2024.1.1
Create Grids

A grid is a single control displaying multiple rows and columns.

Sample of a grid on a form.

You can create a grid using the <Grid> tag:

Copy
<Grid>
    <Style />
    <Block>n</Block>
    <Row>n</Row>
    <Column>n</Column>
    <RowSpan>n</RowSpan>
    <ColumnSpan>n</ColumnSpan>
    <ItemSource>data_class</ItemSource>
    <AuthorizationKey>value</AuthorizationKey>
    <FrozenColumnCount>n</FrozenColumnCount>
    <GridColumn>
        <BindingProperty>data_class</BindingProperty>
        <HeaderCaption>caption</HeaderCaption>
        <DefaultValue>value</DefaultValue>
    </GridColumn>
    <GridColumn>
        .
        .
        .
    </GridColumn>
</Grid>

Within each <GridColumn> tag, you use the <BindingProperty> tag to identify the data element you want to display. The form displays the appropriate field type based on the data type of the data class you specify.

Adding Horizontal Splitters

A horizontal splitter allows users to change the row height by dragging the splitter's handle. It can only be used for controls that don’t have an absolute height, such as <TabControl>.

Copy
<HorizontalSplitter>
    <Row>n</Row>
</HorizontalSplitter>