Property Item
| Improve this Doc View SourceItem[DataRow, Boolean]
Gets or sets the value of this column from provided DataRow object.
Declaration
public T this[DataRow dataRow, bool beforeEdit = false ] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
DataRow | dataRow | The provided DataRow object. |
System.Boolean | beforeEdit | Indicates value of currently editing, or original value before editing, if specified DataRow is in editing mode. The default value is false, which indicates value of currently editing. |
Property Value
Type | Description |
---|---|
T | The value of this column from provided DataRow object. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentException | This column does not belong to provided |
System.InvalidOperationException | This column is read only when setting the value. |
See Also
| Improve this Doc View SourceItem[Int32]
Gets or sets the value of this column from provided DataRow ordinal.
Declaration
public T this[int ordinal] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ordinal | The provided DataRow ordinal. |
Property Value
Type | Description |
---|---|
T | The value of this column from provided DataRow ordinal. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The DataRow ordinal is out of range. |
System.InvalidOperationException | This column is readonly when setting the value. |
See Also
| Improve this Doc View SourceItem[Int32, Boolean]
Gets or sets the value of this column from provided DataRow ordinal for specified editing mode.
Declaration
public T this[int ordinal, bool beforeEdit = false ] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ordinal | The provided DataRow ordinal. |
System.Boolean | beforeEdit | Specifies the editing mode. |
Property Value
Type | Description |
---|---|
T | The value of this column from provided DataRow ordinal for specified editing mode. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The DataRow ordinal is out of range. |
System.InvalidOperationException | This column is readonly when setting the value. |
See Also
| Improve this Doc View SourceItem[DataRow, Int32, Boolean]
Gets or sets the value of this column from provided parent DataRow and its index for specified editing mode.
Declaration
public T this[DataRow parentDataRow, int index, bool beforeEdit = false ] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
DataRow | parentDataRow | The parent DataRow. null if root DataSet. |
System.Int32 | index | The index of parent DataRow; Ordinal of root DataSet if null. |
System.Boolean | beforeEdit | Specifies the editing mode. |
Property Value
Type | Description |
---|---|
T | The value of this column from provided parent DataRow and its index for specified editing mode. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The DataRow ordinal is out of range. |
System.InvalidOperationException | This column is readonly when setting the value. |