A2v10 Platform documentation
UK


DataGridColumn Control

Represents one column of the DataGrid table.

Content property: Content

Properties

Name Type Description
Content Bind Content property. Bind (Bind)only. Table cell content.
Header String Column heading.
Width Length Column width.
Fit Boolean Set column width to content.
Wrap WrapMode Wrap mode for cell content and heading.
Align TextAlign Horizontal alignment of the cell content.
Bold Boolean Display cell content in semi-bold font.
Small Boolean Display the cell content in a smaller font.
Mark Object Bind (Bind) only. Table cell marking.
Icon Icon The icon that will be displayed in the table before the content.
Editable Boolean Whether editing of the cell is allowed.
ControlType ColumnControlType Type of the control in the table cell.
Sort Boolean? Whether sorting is allowed in this column. Allows you to individually override the sorting for each column. The overall sorting resolution is set by the Sort property of the entire DataGrid table.
SortProperty String Name of the property in the data source to sort by. If not specified, sorting will be performed by the Content property.
If Boolean? Include a column in the render stream. Bind (Bind) is used to display/hide columns depending on conditions..
Command BindCmd Command for a table cell. If a command is specified, the Content will be displayed as a hyperlink with the associated command.
Role ColumnRole The role of the column. Sets a specific set of properties for predefined column types. Possible values:
  • Default - (by default). Nothing is set.
  • Number - Displaying the identifier. Width to content, right alignment, no wrapping (Fit="True" Align="Right" Wrap="NoWrap").
  • Number - Number display. Width to content, right alignment, no wrapping (Fit="True" Align="Right" Wrap="NoWrap").
  • Date - Date display. Width to content, right alignment, no wrapping (Fit="True" Align="Center" Wrap="NoWrap").