Declaration: TDataTable.InvertCellStates (StateMask: byte);
The method InvertCellStates inverts the states of all cells (property CellState) of the data table by applying a logical XOR operation to the cell states using the StateMask parameter as a bitmask. See the cell flags for details on the cell state bits.

Example: The statement InvertCellStates ($80); (which is equivalent to InvertCellStates (csMarkedB);) inverts the marks of type B of all cells of the data table.