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调用DataRowViewAddNew或再次调用。 (只有一个新行。

适用于