Gets a value indicating whether TableBindingAdapter is sorted.

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 IsSorted { get; }
Visual Basic (Declaration)
Public Overridable ReadOnly Property IsSorted As Boolean

Field Value

trueTruetruetrue (True in Visual Basic) if rows in the TableBindingAdapter are sorted; otherwise, falseFalsefalsefalse (False in Visual Basic). The value will always be false.

Implements

IBindingList..::.IsSorted

Examples

The code illustrates the IsSorted 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
  AllowNew Property
  AllowRemove Property
  Count Property
  IsFixedSize Property
  IsReadOnly 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.