SrcColumn

Engineering

This dialog can be used to customize the data grid column settings.

SrcColumn 1:

Properties

Settings of the column object selected under 'Elements'

Name

Definition of the name of the structure element to be displayed in this column.

The value must match the name of the structure member. Upper and lower case is taken into account.

Label

Definition of the column header

Control

Choice of controls to be displayed for the cell:

Width

Definition of the column width

Resize

Choice of whether the column width should be adjustable by the user

Min width

Definition of the minimum column width

Editable

Defines whether the column can be edited. This option has no effect if control is 'TextBlock' or 'Image'.

Horizontal alignment

Choice of the horizontal alignment of the column contents

Vertical alignment

Choice of the vertical alignment of the column contents

Data definitions

Definition of the ComboBox / Image content. This attribute is available once the ComboBox or Image control type has been selected.

Format

Formatting function that can convert the displayed value.

Items

List of all objects added

SrcColumn 2:

Delete the selected object

SrcColumn 3:

Change the object order (top = left)

SrcColumn 4:

Add a new object

Schema (version 1.8): tchmi:framework#/definitions/DGColumnDefinitionList

Schema (version 1.12): tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiDatagrid.ColumnDefinitionList

Attribute getter


public getSrcColumn(): TcHmi.Controls.Beckhoff.TcHmiDatagrid.Column[] | TcHmi.Controls.Beckhoff.TcHmiDatagrid.SimpleColumn;

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

TcHmi.Controls.Beckhoff.TcHmiDatagrid.Column[], TcHmi.Controls.Beckhoff.TcHmiDatagrid.SimpleColumn

The current value of the attribute.

Attribute setter

public setSrcColumn(valueNew: TcHmi.Controls.Beckhoff.TcHmiDatagrid.Column[] | null): void;

Parameter

Name

Type

Description

valueNew

TcHmi.Controls.Beckhoff.TcHmiDatagrid.Column[], TcHmi.Controls.Beckhoff.TcHmiDatagrid.SimpleColumn, null

The new value of the attribute. If null is passed, the internal default value is used.

Return value

Type

Description

void

No return value.

SrcColumn 5:

Available from 1.8