| ArcGIS Explorer Component Help |
| TableBindingAdapter..::.IsSorted Property |
| TableBindingAdapter Class Example See Also |
Gets a value indicating whether TableBindingAdapter is sorted.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
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#
CopyVB.NET
{
//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"
}'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"