Gets a value indicating whether new rows can be added to the underlying bound data source.

Namespace:  ESRI.ArcGISExplorer.Data
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

C#
public virtual bool AllowNew { get; }
Visual Basic (Declaration)
Public Overridable ReadOnly Property AllowNew As Boolean

Field Value

trueTruetruetrue (True in Visual Basic) if new rows can be added; otherwise, falseFalsefalsefalse (False in Visual Basic). The value will always be false.

Implements

IBindingList..::.AllowNew

Examples

The code illustrates the AllowNew property.
CopyC#
{
  //Open the mountains fill geodatabase feature class
  Table mountains = Table.OpenFileGeodatabaseTable(@"C:\Data\Scotland.gdb", "mountains");

  //Create a new TableBindingAdapter object for the mountains Table
  TableBindingAdapter tableAdapter = new TableBindingAdapter(mountains);
  //Fill the adapter with the specified rows
  tableAdapter.Fill(new int[] { 1, 15, 232 });

  //The TableBindingAdapter is always readonly and a fixed size
  System.Diagnostics.Debug.Print(tableAdapter.IsFixedSize.ToString());    //Prints "True"
  System.Diagnostics.Debug.Print(tableAdapter.IsReadOnly.ToString());     //Prints "True"
  //Consequently the following properties are always false
  System.Diagnostics.Debug.Print(tableAdapter.AllowEdit.ToString());      //Prints "False"
  System.Diagnostics.Debug.Print(tableAdapter.AllowNew.ToString());       //Prints "False"
  System.Diagnostics.Debug.Print(tableAdapter.AllowRemove.ToString());    //Prints "False"
  System.Diagnostics.Debug.Print(tableAdapter.SupportsSorting.ToString());//Prints "True"
  System.Diagnostics.Debug.Print(tableAdapter.IsSorted.ToString());       //Prints "False"
}
CopyVB.NET
'Open the mountains fill geodatabase feature class
Dim mountainsTable As Table = Table.OpenFileGeodatabaseTable("C:\Data\Scotland.gdb", "mountains")

'Create a new TableBindingAdapter object for the mountains Table
Dim tableAdapter As TableBindingAdapter = New TableBindingAdapter(mountainsTable)
'Fill the adapter with the specified rows
tableAdapter.Fill(New Integer() {1, 15, 232})

'The TableBindingAdapter is always readonly and a fixed size
System.Diagnostics.Debug.Print(tableAdapter.IsFixedSize.ToString())    'Prints "True"
System.Diagnostics.Debug.Print(tableAdapter.IsReadOnly.ToString())     'Prints "True"
'Consequently the following properties are always false
System.Diagnostics.Debug.Print(tableAdapter.AllowEdit.ToString())      'Prints "False"
System.Diagnostics.Debug.Print(tableAdapter.AllowNew.ToString())       'Prints "False"
System.Diagnostics.Debug.Print(tableAdapter.AllowRemove.ToString())    'Prints "False"


'The TableBindingAdapter does not support sorting
System.Diagnostics.Debug.Print(tableAdapter.SupportsSorting.ToString()) 'Prints "False"
'Consequently the IsSorted property always returns false
System.Diagnostics.Debug.Print(tableAdapter.IsSorted.ToString())       'Prints "False"

See Also

Relate Topics:
  AllowEdit Property
  AllowRemove Property
  Count Property
  IsFixedSize Property
  IsReadOnly Property
  IsSorted Property
  IsSynchronized Property
  Item Property
  SortDirection Property
  SortProperty Property
  SupportsChangeNotification Property
  SupportsSearching Property
  SupportsSorting Property
  SyncRoot Property
  UseCodedValueDomains Property
  UseColumnAliasNames Property
Created by Atop CHM to web converter,© 2009 all right reserved.