Class DataTableRecordsList
Represents the class that maintains the records list when binding data table as source to the SfDataGrid.
Implements
Inherited Members
Namespace: Syncfusion.Maui.Data
Assembly: Syncfusion.Maui.Data.dll
Syntax
public class DataTableRecordsList : RecordsList, IRecordsList, IRecordsEntryList, IList<RecordEntry>, ICollection<RecordEntry>, IEnumerable<RecordEntry>, IEnumerable, INotifyCollectionChanged, IDisposable
Constructors
DataTableRecordsList(IEnumerable, DataTableCollectionView)
Initializes a new instance of the DataTableRecordsList class.
Declaration
public DataTableRecordsList(IEnumerable source, DataTableCollectionView view)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | The IEnumerable source of the SfDataGrid. |
| DataTableCollectionView | view | The data table collection view. |
Methods
PopulateRecords(IEnumerable, CollectionViewAdv)
Populates the internalList by enumerating the specified source.
Declaration
protected override void PopulateRecords(IEnumerable source, CollectionViewAdv view)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | The source. |
| CollectionViewAdv | view | The View. |
Overrides
Remarks
The internalList will be populated with null entries in the case of VirtualRecordsList. In case of IQueryable source will be filtered by query. So, there is no need of filter each record while populating.