Properties accessible from data cells
The matrix has a set of properties that you can use when printing data cells. The name of the matrix is used to access the property:
[Matrix1.RowIndex]
Property | Return value | Description |
---|---|---|
ColumnIndex | int | Index of the current column. |
RowIndex | int | Index of the current line. |
ColumnValues | object[] | Array of values from the column header. |
RowValues | object[] | Array of values from the row header. |
These properties can be useful for highlighting cells with color based on a condition.
You can also access data source fields from a cell. As a rule, this is required to enable conditional highlighting (see section Conditional highlighting). Thus, for a data cell, you can specify the following condition to highlight values related to 2012:
[MatrixDemo.Year] == 2012
The value of the DB field that was used to print the cell is taken from the matrix header. Since there are two headings (row and column), you must specify which heading values will have priority. Matrix property DataRowPriority
is responsible for this. The property is set to Rows
by default.