System.Data.DataRowView.this C# (CSharp) Method

this() public method

Gets the specified column value or related child view or sets a value in specified column.
when is ambigous. Unmatched when getting a value. Unmatched when setting a value. when setting a value.
public this ( string property ) : object
property string Specified column or relation name when getting. Specified column name when setting.
return object
        public object this[string property]
        {
            get
            {
                DataColumn column = _dataView.Table.Columns[property];
                if (null != column)
                {
                    return Row[column, RowVersionDefault];
                }
                else if (_dataView.Table.DataSet != null && _dataView.Table.DataSet.Relations.Contains(property))
                {
                    return CreateChildView(property);
                }
                throw ExceptionBuilder.PropertyNotFound(property, _dataView.Table.TableName);
            }
            set
            {
                DataColumn column = _dataView.Table.Columns[property];
                if (null == column)
                {
                    throw ExceptionBuilder.SetFailed(property);
                }
                if (!_dataView.AllowEdit && !IsNew)
                {
                    throw ExceptionBuilder.CanNotEdit();
                }
                SetColumnValue(column, value);
            }
        }

Same methods

DataRowView::this ( int ndx ) : object
DataRowView::this ( string colName ) : stringIDataErrorInfo.System.ComponentModel