Can I change the cells colors in a table node?

You can find several examples for this in Slicer source code. You can get the item by calling QModelIndex index = this->indexAt(point).