Leer en inglés

Compartir a través de


DataView.AllowEdit Propiedad

Definición

Obtiene o establece un valor que indica si se permiten las ediciones.

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

Valor de propiedad

true si se permiten las ediciones; en caso contrario, false.

Atributos

Ejemplos

En el ejemplo siguiente se invoca el AllowEdit método antes de editar una fila en .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

Se aplica a

Producto Versiones
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Consulte también