Sets or gets a value indicating whether deletes are allowed.
[Visual Basic] Public Property AllowDelete As Boolean [C#] public bool AllowDelete {get; set;} [C++] public: __property bool get_AllowDelete(); public: __property void set_AllowDelete(bool); [JScript] public function get AllowDelete() : Boolean; public function set AllowDelete(Boolean);
true, if deletes are allowed; otherwise, false.
The following example checks the AllowDelete property before deleting a DataRow from a DataView.
[Visual Basic]
Private Sub CheckAllowDelete(rowToDelete As DataRow) Dim dv As DataView dv = New DataView(DataSet1.Tables("Suppliers") If dv.AllowDelete Then Rows(rowToDelete).Delete End If End Sub