Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
DataView..::.AllowNew Property

Gets or sets a value that indicates whether the new rows can be added by using the AddNew method.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
Visual Basic
Public Property AllowNew As Boolean
    Get
    Set
C#
public bool AllowNew { get; set; }
Visual C++
public:
property bool AllowNew {
    bool get ();
    void set (bool value);
}
F#
member AllowNew : bool with get, set

Property Value

Type: System..::.Boolean
true, if new rows can be added; otherwise, false.

The following example sets the AllowNew property to true before adding a new row with the AddNew method.

Visual Basic
Private Sub AddNew()
    Dim table As DataTable = New DataTable

    ' Not shown: code to populate DataTable.

    Dim view As DataView = New DataView(table)
    view.AllowNew = True
    Dim rowView As DataRowView
    rowView = view.AddNew
    rowView("ProductName") = "New Product Name"
End Sub
C#
private void AddNew()
{
    DataTable table = new DataTable();

    // Not shown: code to populate DataTable.

    DataView view = new DataView(table);
    view.AllowNew = true;
    DataRowView rowView = view.AddNew();
    rowView["ProductName"] = "New Product Name";
}

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Biblioteca de clases de .NET Framework
DataView..::.AllowNew (Propiedad)

Obtiene o establece un valor que indica si se pueden agregar las nuevas filas mediante el método AddNew.

Espacio de nombres:  System.Data
Ensamblado:  System.Data (en System.Data.dll)
Visual Basic
Public Property AllowNew As Boolean
    Get
    Set
C#
public bool AllowNew { get; set; }
Visual C++
public:
property bool AllowNew {
    bool get ();
    void set (bool value);
}
F#
member AllowNew : bool with get, set

Valor de propiedad

Tipo: System..::.Boolean
true si se pueden agregar nuevas filas; en caso contrario, false.

En el ejemplo siguiente se establece la propiedad AllowNew en true antes de agregar una nueva fila con el método AddNew.

Visual Basic
Private Sub AddNew()
    Dim table As DataTable = New DataTable

    ' Not shown: code to populate DataTable.

    Dim view As DataView = New DataView(table)
    view.AllowNew = True
    Dim rowView As DataRowView
    rowView = view.AddNew
    rowView("ProductName") = "New Product Name"
End Sub
C#
private void AddNew()
{
    DataTable table = new DataTable();

    // Not shown: code to populate DataTable.

    DataView view = new DataView(table);
    view.AllowNew = true;
    DataRowView rowView = view.AddNew();
    rowView["ProductName"] = "New Product Name";
}

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2

.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker