[]
A wrapper for the standard ADO.NET DataTable class allowing to use ADO.NET data sources in LiveLinq indexing and live views.
public class IndexedDataTable<TRow> : IObservableSource<TRow>, IIndexedSource<TRow>, IList<TRow>, ICollection<TRow>, IEnumerable<TRow>, ITypedList, INotifyPropertyChanged, IBindingList, IList, ICollection, IEnumerable, ICancelAddNew where TRow : DataRow
Name | Description |
---|---|
TRow | The type of the rows of the DataTable. It is a class derived from DataRow |
Note: The IndexedDataTable wrapper is owned by the original DataTable object (in fact, it is stored in its ExtendedProperties). So, if you create a wrapper for the same data table several times, it will be the same object.
Name | Description |
---|---|
Count | Gets the number of rows in the data table. |
Indexes | The collection of indexes for this IndexedDataTable<TRow> |
this[int] | Gets the row at the specified ordinal position. |
Table | Gets the ADO.NET DataTable object represented by this IndexedDataTable<TRow>. |
Name | Description |
---|---|
BeginUpdate() | Suspends notifications while massive changes are being made to a data table. |
EndUpdate() | Ends notification suspension started with BeginUpdate(). |
GetEnumerator() | Returns an enumerator that iterates through the IndexedDataTable<TRow>. |