本文内容是根据(http://dotnet.mblogger.cn/9sun/posts/5050.aspx)所改写的C#版
| 示例 | DataRowState (DataRow状态) |
Current (当前值) |
Original (原始值) |
Proposed |
Default (默认值) |
|
新创建但独立的行: |
Detached | [Exception] | [Exception] | InitValue | InitValue |
| 将新行添加到DataTable: tbl.Rows.Add(row); |
Added | InitValue | [Exception] | [Exception] | InitValue |
|
最新获取的行: |
Unchanged | Retrieved-Value | Retrieved-Value | [Exception] | Retrieved-Value |
| 编辑过程后: row(“ColX“)=“NewValue1“ |
Modified | NewValue1 | Retrieved-Value | [Exception] | NewValue1 |
| 删除行以后: row.Delete() |
Deleted | [Exception] | Retrieved-Value | [Exception] | [Exception] |
浙公网安备 33010602011771号