DataView.AllowEdit Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether edits are allowed.
public:
property bool AllowEdit { bool get(); void set(bool value); };
public bool AllowEdit { get; set; }
[System.Data.DataSysDescription("DataViewAllowEditDescr")]
public bool AllowEdit { get; set; }
member this.AllowEdit : bool with get, set
[<System.Data.DataSysDescription("DataViewAllowEditDescr")>]
member this.AllowEdit : bool with get, set
Public Property AllowEdit As Boolean
Property Value
true
, if edits are allowed; otherwise, false
.
- Attributes
Examples
The following example invokes the AllowEdit method before editing a row in a DataView.
private void EditRow(DataView view)
{
view.AllowEdit = true;
view[0].BeginEdit();
view[0]["FirstName"] = "Mary";
view[0]["LastName"] = "Jones";
view[0].EndEdit();
}
Private Sub EditRow(view As DataView)
view.AllowEdit = True
view(0).BeginEdit
view(0)("FirstName") = "Mary"
view(0)("LastName") = "Jones"
view(0).EndEdit
End Sub
Applies to
See also
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.