NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataView.AllowDelete

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);

Property Value

true, if deletes are allowed; otherwise, false.

Example [Visual Basic]

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

See Also

DataView Class | DataView Members | System.Data Namespace