DataRowView.IsNew 屬性

定義

指示 DataRowView 是否為新的。

public:
 property bool IsNew { bool get(); };
public bool IsNew { get; }
member this.IsNew : bool
Public ReadOnly Property IsNew As Boolean

屬性值

true,表示資料列是新的;否則為 false

備註

呼叫 AddNew之後, IsNew 所傳 DataRowView回 的 將會是 true。 IsNew 會是 true,直到 EndEdit 在 上 DataRowView呼叫 或 AddNew 再次呼叫為止。 (只有一個新的row.)

適用於