示例#1
0
        public override bool IsColumnActive(int col)
        {
            Ch.Check(0 <= col & col < _bindings.ColumnCount, "col");
            bool isSrc;

            col = _bindings.MapColumnIndex(out isSrc, col);
            return(isSrc && Input.IsColumnActive(col));
        }
        /// <summary>
        /// Returns whether the given column is active in this row.
        /// </summary>
        public override bool IsColumnActive(DataViewSchema.Column column)
        {
            Ch.Check(column.Index < _bindings.ColumnCount, nameof(column));
            bool isSrc;
            int  srcColumnIndex = _bindings.MapColumnIndex(out isSrc, column.Index);

            return(isSrc && Input.IsColumnActive(Schema[srcColumnIndex]));
        }