DataTable Methods
The methods of the DataTable class are listed here. For a complete list of DataTable class members, see the DataTable Members topic.
Public Methods
AcceptChanges Supported by the .NET Compact Framework. | Commits all the changes made to this table since the last time AcceptChanges was called. |
BeginInit Supported by the .NET Compact Framework. | Begins the initialization of a DataTable that is used on a form or used by another component. The initialization occurs at runtime. |
BeginLoadData Supported by the .NET Compact Framework. | Turns off notifications, index maintenance, and constraints while loading data. |
Clear Supported by the .NET Compact Framework. | Clears the DataTable of all data. |
Clone Supported by the .NET Compact Framework. | Clones the structure of the DataTable, including all DataTable schemas and constraints. |
Compute Supported by the .NET Compact Framework. | Computes the given expression on the current rows that pass the filter criteria. |
Copy | Copies both the structure and data for this DataTable. |
Dispose (inherited from MarshalByValueComponent) | Overloaded. Releases the resources used by the MarshalByValueComponent. |
EndInit Supported by the .NET Compact Framework. | Ends the initialization of a DataTable that is used on a form or used by another component. The initialization occurs at runtime. |
EndLoadData Supported by the .NET Compact Framework. | Turns on notifications, index maintenance, and constraints after loading data. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
GetChanges | Overloaded. Gets a copy of the DataTable containing all changes made to it since it was last loaded, or since AcceptChanges was called. |
GetErrors Supported by the .NET Compact Framework. | Gets an array of DataRow objects that contain errors. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetService (inherited from MarshalByValueComponent) | Gets the implementer of the IServiceProvider. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
ImportRow Supported by the .NET Compact Framework. | Copies a DataRow into a DataTable, preserving any property settings, as well as original and current values. |
LoadDataRow Supported by the .NET Compact Framework. | Finds and updates a specific row. If no matching row is found, a new row is created using the given values. |
NewRow Supported by the .NET Compact Framework. | Creates a new DataRow with the same schema as the table. |
RejectChanges Supported by the .NET Compact Framework. | Rolls back all changes that have been made to the table since it was loaded, or the last time AcceptChanges was called. |
Reset Supported by the .NET Compact Framework. | Resets the DataTable to its original state. |
Select Supported by the .NET Compact Framework. | Overloaded. Gets an array of DataRow objects. |
ToString Supported by the .NET Compact Framework. | Overridden. Gets the TableName and DisplayExpression, if there is one as a concatenated string. |
Protected Methods
CreateInstance | Creates a new instance of the DataTable class. |
Dispose (inherited from MarshalByValueComponent) | Overloaded. Releases the resources used by the MarshalByValueComponent. |
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
NewRowFromBuilder Supported by the .NET Compact Framework. | Creates a new row from an existing row. |
OnColumnChanged Supported by the .NET Compact Framework. | Raises the ColumnChanged event. |
OnColumnChanging Supported by the .NET Compact Framework. | Raises the ColumnChanging event. |
OnRemoveColumn | Notifies the DataTable that a DataColumn is being removed. |
OnRowChanged Supported by the .NET Compact Framework. | Raises the RowChanged event. |
OnRowChanging Supported by the .NET Compact Framework. | Raises the RowChanging event. |
OnRowDeleted Supported by the .NET Compact Framework. | Raises the RowDeleted event. |
OnRowDeleting Supported by the .NET Compact Framework. | Raises the RowDeleting event. |
