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);
true, if edits are allowed; otherwise, false.
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
DataView Class | DataView Members | System.Data Namespace | AllowDelete | AllowNew | BeginEdit