Returns a copy of the DataSet containing all changes made to it since it was last loaded, or since AcceptChanges was called, filtered by DataRowState.
[Visual Basic] Overloads Public Function GetChanges( _ ByVal rowStates As DataRowState _ ) As DataSet [C#] public DataSet GetChanges( DataRowState rowStates ); [C++] public: DataSet* GetChanges( DataRowState rowStates ); [JScript] public function GetChanges( rowStates : DataRowState ) : DataSet;
A filtered copy of the DataSet that can have actions performed on it, and subsequently be merged back in using Merge. If no rows of the desired DataRowState are found, the method returns a null reference (in Visual Basic Nothing).
This copy is particularly designed so that it can be merged back in to this original dataSet. Relationship constraints may cause parent rows not of the indicated rowState to also be included.
This returned copy is designed to be merged back in to this original DataSet. Relationship constraints may cause parent rows marked Unchanged to be included. If no rows of the desired DataRowState are found, the GetChanges method returns null.
DataSet Class | DataSet Members | System.Data Namespace | DataSet.GetChanges Overload List