| ArcGIS Explorer Component Help | 
| TableBindingAdapter..::.AllowRemove Property | 
| TableBindingAdapter Class Example See Also | 
            Gets a value indicating whether rows can be deleted from the underlying bound data source.
            
    Namespace: 
   ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
 Syntax
Syntax
| C# | 
|---|
| public virtual bool AllowRemove { get; } | 
| Visual Basic (Declaration) | 
|---|
| Public Overridable ReadOnly Property AllowRemove As Boolean | 
Field Value
trueTruetruetrue (True in Visual Basic) if rows can be deleted; otherwise, falseFalsefalsefalse (False in Visual Basic). The value will always be false.Implements
IBindingList..::.AllowRemove Examples
Examples
            The code illustrates the AllowRemove property.
             CopyC#
CopyC# CopyVB.NET
CopyVB.NET
 CopyC#
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
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"




