public bool IsCellEnabled(CellPos cellpos) { // don't bother if the cell doesn't exists or the cell's // column is not visible if (!this.IsValidCell(cellpos) || !this.ColumnModel.Columns[cellpos.Column].Visible) { return false; } return (this.TableModel[cellpos].Enabled && this.ColumnModel.Columns[cellpos.Column].Enabled); }