DataTable Methods

 

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodAcceptChanges()

Commits all the changes made to this table since the last time AcceptChanges was called.

System_CAPS_pubmethodBeginInit()

Begins the initialization of a DataTable that is used on a form or used by another component. The initialization occurs at run time.

System_CAPS_pubmethodBeginLoadData()

Turns off notifications, index maintenance, and constraints while loading data.

System_CAPS_pubmethodClear()

Clears the DataTable of all data.

System_CAPS_pubmethodClone()

Clones the structure of the DataTable, including all DataTable schemas and constraints.

System_CAPS_pubmethodCompute(String, String)

Computes the given expression on the current rows that pass the filter criteria.

System_CAPS_pubmethodCopy()

Copies both the structure and data for this DataTable.

System_CAPS_pubmethodCreateDataReader()

Returns a DataTableReader corresponding to the data within this DataTable.

System_CAPS_protmethodCreateInstance()

This API supports the product infrastructure and is not intended to be used directly from your code. Creates a new instance of DataTable.

System_CAPS_pubmethodDispose()

Releases all resources used by the MarshalByValueComponent.(Inherited from MarshalByValueComponent.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources.(Inherited from MarshalByValueComponent.)

System_CAPS_pubmethodEndInit()

Ends the initialization of a DataTable that is used on a form or used by another component. The initialization occurs at run time.

System_CAPS_pubmethodEndLoadData()

Turns on notifications, index maintenance, and constraints after loading data.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from MarshalByValueComponent.)

System_CAPS_pubmethodGetChanges()

Gets a copy of the DataTable that contains all changes made to it since it was loaded or AcceptChanges was last called.

System_CAPS_pubmethodGetChanges(DataRowState)

Gets a copy of the DataTable containing all changes made to it since it was last loaded, or since AcceptChanges was called, filtered by DataRowState.

System_CAPS_pubmethodSystem_CAPS_staticGetDataTableSchema(XmlSchemaSet)

This method returns an XmlSchemaSet instance containing the Web Services Description Language (WSDL) that describes the DataTable for Web Services.

System_CAPS_pubmethodGetErrors()

Gets an array of DataRow objects that contain errors.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a serialization information object with the data needed to serialize the DataTable.

System_CAPS_protmethodGetRowType()

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the row type.

System_CAPS_protmethodGetSchema()

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IXmlSerializable.GetSchema.

System_CAPS_pubmethodGetService(Type)

Gets the implementer of the IServiceProvider.(Inherited from MarshalByValueComponent.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodImportRow(DataRow)

Copies a DataRow into a DataTable, preserving any property settings, as well as original and current values.

System_CAPS_pubmethodLoad(IDataReader)

Fills a DataTable with values from a data source using the supplied IDataReader. If the DataTable already contains rows, the incoming data from the data source is merged with the existing rows.

System_CAPS_pubmethodLoad(IDataReader, LoadOption)

Fills a DataTable with values from a data source using the supplied IDataReader. If the DataTable already contains rows, the incoming data from the data source is merged with the existing rows according to the value of the loadOption parameter.

System_CAPS_pubmethodLoad(IDataReader, LoadOption, FillErrorEventHandler)

Fills a DataTable with values from a data source using the supplied IDataReader using an error-handling delegate.

System_CAPS_pubmethodLoadDataRow(Object[], Boolean)

Finds and updates a specific row. If no matching row is found, a new row is created using the given values.

System_CAPS_pubmethodLoadDataRow(Object[], LoadOption)

Finds and updates a specific row. If no matching row is found, a new row is created using the given values.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodMerge(DataTable)

Merge the specified DataTable with the current DataTable.

System_CAPS_pubmethodMerge(DataTable, Boolean)

Merge the specified DataTable with the current DataTable, indicating whether to preserve changes in the current DataTable.

System_CAPS_pubmethodMerge(DataTable, Boolean, MissingSchemaAction)

Merge the specified DataTable with the current DataTable, indicating whether to preserve changes and how to handle missing schema in the current DataTable.

System_CAPS_pubmethodNewRow()

Creates a new DataRow with the same schema as the table.

System_CAPS_protmethodNewRowArray(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns an array of DataRow.

System_CAPS_protmethodNewRowFromBuilder(DataRowBuilder)

Creates a new row from an existing row.

System_CAPS_protmethodOnColumnChanged(DataColumnChangeEventArgs)

Raises the ColumnChanged event.

System_CAPS_protmethodOnColumnChanging(DataColumnChangeEventArgs)

Raises the ColumnChanging event.

System_CAPS_protmethodOnPropertyChanging(PropertyChangedEventArgs)

Raises the PropertyChanged event.

System_CAPS_protmethodOnRemoveColumn(DataColumn)

Notifies the DataTable that a DataColumn is being removed.

System_CAPS_protmethodOnRowChanged(DataRowChangeEventArgs)

Raises the RowChanged event.

System_CAPS_protmethodOnRowChanging(DataRowChangeEventArgs)

Raises the RowChanging event.

System_CAPS_protmethodOnRowDeleted(DataRowChangeEventArgs)

Raises the RowDeleted event.

System_CAPS_protmethodOnRowDeleting(DataRowChangeEventArgs)

Raises the RowDeleting event.

System_CAPS_protmethodOnTableCleared(DataTableClearEventArgs)

Raises the TableCleared event.

System_CAPS_protmethodOnTableClearing(DataTableClearEventArgs)

Raises the TableClearing event.

System_CAPS_protmethodOnTableNewRow(DataTableNewRowEventArgs)

Raises the TableNewRow event.

System_CAPS_pubmethodReadXml(Stream)

Reads XML schema and data into the DataTable using the specified Stream.

System_CAPS_pubmethodReadXml(String)

Reads XML schema and data into the DataTable from the specified file.

System_CAPS_pubmethodReadXml(TextReader)

Reads XML schema and data into the DataTable using the specified TextReader.

System_CAPS_pubmethodReadXml(XmlReader)

Reads XML Schema and Data into the DataTable using the specified XmlReader.

System_CAPS_pubmethodReadXmlSchema(Stream)

Reads an XML schema into the DataTable using the specified stream.

System_CAPS_pubmethodReadXmlSchema(String)

Reads an XML schema into the DataTable from the specified file.

System_CAPS_pubmethodReadXmlSchema(TextReader)

Reads an XML schema into the DataTable using the specified TextReader.

System_CAPS_pubmethodReadXmlSchema(XmlReader)

Reads an XML schema into the DataTable using the specified XmlReader.

System_CAPS_protmethodReadXmlSerializable(XmlReader)

This API supports the product infrastructure and is not intended to be used directly from your code. Reads from an XML stream.

System_CAPS_pubmethodRejectChanges()

Rolls back all changes that have been made to the table since it was loaded, or the last time AcceptChanges was called.

System_CAPS_pubmethodReset()

Resets the DataTable to its original state. Reset removes all data, indexes, relations, and columns of the table. If a DataSet includes a DataTable, the table will still be part of the DataSet after the table is reset.

System_CAPS_pubmethodSelect()

Gets an array of all DataRow objects.

System_CAPS_pubmethodSelect(String)

Gets an array of all DataRow objects that match the filter criteria.

System_CAPS_pubmethodSelect(String, String)

Gets an array of all DataRow objects that match the filter criteria, in the specified sort order.

System_CAPS_pubmethodSelect(String, String, DataViewRowState)

Gets an array of all DataRow objects that match the filter in the order of the sort that match the specified state.

System_CAPS_pubmethodToString()

Gets the TableName and DisplayExpression, if there is one as a concatenated string.(Overrides MarshalByValueComponent.ToString().)

System_CAPS_pubmethodWriteXml(Stream)

Writes the current contents of the DataTable as XML using the specified Stream.

System_CAPS_pubmethodWriteXml(Stream, Boolean)

Writes the current contents of the DataTable as XML using the specified Stream. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXml(Stream, XmlWriteMode)

Writes the current data, and optionally the schema, for the DataTable to the specified file using the specified XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.

System_CAPS_pubmethodWriteXml(Stream, XmlWriteMode, Boolean)

Writes the current data, and optionally the schema, for the DataTable to the specified file using the specified XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXml(String)

Writes the current contents of the DataTable as XML using the specified file.

System_CAPS_pubmethodWriteXml(String, Boolean)

Writes the current contents of the DataTable as XML using the specified file. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXml(String, XmlWriteMode)

Writes the current data, and optionally the schema, for the DataTable using the specified file and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.

System_CAPS_pubmethodWriteXml(String, XmlWriteMode, Boolean)

Writes the current data, and optionally the schema, for the DataTable using the specified file and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXml(TextWriter)

Writes the current contents of the DataTable as XML using the specified TextWriter.

System_CAPS_pubmethodWriteXml(TextWriter, Boolean)

Writes the current contents of the DataTable as XML using the specified TextWriter. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXml(TextWriter, XmlWriteMode)

Writes the current data, and optionally the schema, for the DataTable using the specified TextWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.

System_CAPS_pubmethodWriteXml(TextWriter, XmlWriteMode, Boolean)

Writes the current data, and optionally the schema, for the DataTable using the specified TextWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXml(XmlWriter)

Writes the current contents of the DataTable as XML using the specified XmlWriter.

System_CAPS_pubmethodWriteXml(XmlWriter, Boolean)

Writes the current contents of the DataTable as XML using the specified XmlWriter.

System_CAPS_pubmethodWriteXml(XmlWriter, XmlWriteMode)

Writes the current data, and optionally the schema, for the DataTable using the specified XmlWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.

System_CAPS_pubmethodWriteXml(XmlWriter, XmlWriteMode, Boolean)

Writes the current data, and optionally the schema, for the DataTable using the specified XmlWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXmlSchema(Stream)

Writes the current data structure of the DataTable as an XML schema to the specified stream.

System_CAPS_pubmethodWriteXmlSchema(Stream, Boolean)

Writes the current data structure of the DataTable as an XML schema to the specified stream. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXmlSchema(String)

Writes the current data structure of the DataTable as an XML schema to the specified file.

System_CAPS_pubmethodWriteXmlSchema(String, Boolean)

Writes the current data structure of the DataTable as an XML schema to the specified file. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXmlSchema(TextWriter)

Writes the current data structure of the DataTable as an XML schema using the specified TextWriter.

System_CAPS_pubmethodWriteXmlSchema(TextWriter, Boolean)

Writes the current data structure of the DataTable as an XML schema using the specified TextWriter. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

System_CAPS_pubmethodWriteXmlSchema(XmlWriter)

Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter.

System_CAPS_pubmethodWriteXmlSchema(XmlWriter, Boolean)

Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

NameDescription
System_CAPS_pubmethodAsDataView()

Overloaded. Creates and returns a LINQ-enabled DataView object.(Defined by DataTableExtensions.)

System_CAPS_pubmethodAsEnumerable()

Returns an IEnumerable<T> object, where the generic parameter T is DataRow. This object can be used in a LINQ expression or method query.(Defined by DataTableExtensions.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIListSource.GetList()

For a description of this member, see IListSource.GetList.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.GetSchema()

For a description of this member, see IXmlSerializable.GetSchema.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.ReadXml(XmlReader)

For a description of this member, see IXmlSerializable.ReadXml.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.WriteXml(XmlWriter)

For a description of this member, see IXmlSerializable.WriteXml.

Return to top
Show: