DataRowVersion与DataRowState C#版

本文内容是根据(http://dotnet.mblogger.cn/9sun/posts/5050.aspx)所改写的C#版
示例 DataRowState
(DataRow状态)
Current
(当前值)
Original
(原始值)

Proposed
(建议值)

Default
(默认值)

新创建但独立的行:
row=tbl.NewRow();
row(“columnx“)=“InitValue“;

Detached [Exception] [Exception] InitValue InitValue
将新行添加到DataTable:
tbl.Rows.Add(row);
Added InitValue [Exception] [Exception] InitValue

最新获取的行:
tbl.AcceptChanges();

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]

转 http://dotnet.mblogger.cn/9sun/posts/5050.aspx

原文地址:https://www.cnblogs.com/freebird92/p/605048.html