Each DataRow has the readonly property RowState.
When you change a value in a row, also the RowState is changed to "Modified"
If you add a row, this row will have a RowState="Added "
If you delete a row, this row will be marked as "Deleted"
If you call the AcceptChages() method of the DataRow/DataTable, all the
chages made to the rows will take place and all the state of the rows are
set to "Unchanged"
If you call the RejectChages() method of the DataRow/DataTable, all the
chages made to the rows will be discarded and all the state of the rows are
set to "Unchanged"
DataView is able to filter also the RowState, if you are not intrested to
filter the rowstate set the
DataView.RowStateFilter=DataViewRowState.CurrentRo ws
"Ubi" <Ub*@discussions.microsoft.com> schrieb im Newsbeitrag
news:EB**********************************@microsof t.com...
hi
i have a problem with System.Data.DataViewRowState.
i have a ReadOnly datagrid,
a dataView and a dataTable.
i'm using the dataView's filter property to filter the data (firstName =
'Dani').
the problem is that i don't understanh how the ViewRowState works:
i have an external form that changes the value of the dataTable.
when it changes a row (even when the firstName col is not changed). the
row disappears; when a row that wasn't in the view before (because it's name
want Danni) changes to firstName->Danni, it doesn't appear in the view although
it should be...
please please help!