When calculating column properties, take "is valid" and "is masked" properties of cells into account.