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.AllowEdit

Gets or sets a value indicating whether edits are allowed.

[Visual Basic]
Public Property AllowEdit As Boolean
[C#]
public bool AllowEdit {get; set;}
[C++]
public: __property bool get_AllowEdit();
public: __property void set_AllowEdit(bool);
[JScript]
public function get AllowEdit() : Boolean;
public function set AllowEdit(Boolean);

Property Value

true, if edits are allowed; otherwise, false.

Example [Visual Basic]

The following example invokes the AllowEdit method before editing a row in a DataView.

[Visual Basic]

Private Sub EditRow(dv As DataView)
   dv.AllowEdit = True
   dv(0).BeginEdit
   dv(0)("FirstName") = "Mary"
   dv(0)("LastName") = "Jones"
   dv(0).EndEdit
End Sub

See Also

DataView Class | DataView Members | System.Data Namespace | AllowDelete | AllowNew | BeginEdit