XPTable.Models.Table.IsCellEditable C# (CSharp) Method

IsCellEditable() public method

Returns whether the Cell at the specified CellPos is able to be edited by the user
public IsCellEditable ( XPTable.Models.CellPos cellpos ) : bool
cellpos XPTable.Models.CellPos A CellPos that specifies the Cell to check
return bool
        public bool IsCellEditable(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].Editable &&
                this.ColumnModel.Columns[cellpos.Column].Editable);
        }

Same methods

Table::IsCellEditable ( int row, int column ) : bool
Table