Class DataTableDataSource
DataTableDataSource is a non UI component that consumes DataTable type data and processes data operations such as sorting, filtering and grouping. This can be applied to any data bound control to perform the data processing and data operations which saving developers time and effort in building the functionality themselves.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DataSource
Assembly: Syncfusion.DataSource.WinForms.dll
Syntax
public class DataTableDataSource : DataSource, IDisposable
Constructors
DataTableDataSource()
Initializes a new instance of the DataTableDataSource class.
Declaration
public DataTableDataSource()
Methods
AddNew()
Adds a new item to the collection.
Declaration
public override object AddNew()
Returns
Type | Description |
---|---|
System.Object | The new item that is added to the collection. |
Overrides
CancelNew()
Ends the add transaction and discards the pending new item.
Declaration
public override void CancelNew()
Overrides
CommitNew()
Ends the add transaction and saves the pending new item.
Declaration
public override void CommitNew()
Overrides
GetValue(Object, String)
Gets the value of property from the given object.
Declaration
protected override object GetValue(object item, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The object |
System.String | propertyName | Property name |
Returns
Type | Description |
---|---|
System.Object | The value |
Overrides
RefreshFilter()
Refreshes the view when the filtering is applied using the FilterPredicates.
Declaration
public override void RefreshFilter()
Overrides
Implements
System.IDisposable