TQTXCustomTable uses attributes to signify which row and cell has been selected (if selection is allowed, see the settings property of that widget).

This means that TQTXTable and consequently, TQTXStringGrid likewise use the same attributes due to inheritance.


The following attributes are written to the <tr> row element on selection:


Attribute name

Value

data-table-row-selected

TRUE


The following attributes are written to the <td> column element on selection:


Attribute name

Value

data-table-col-selected

TRUE


Much like TQTXListViewItem the attributes are simply removed when un-selected, there is no need to check for a false value. And likewise these attributes are meant for the user, the widget itself has no need for them. It's meant purely for flexibility and future-proofing.