Problem detecting deletion in dataset (in datagrid)

  • Thread starter Thread starter Flare
  • Start date Start date
F

Flare

Hi

I have set at dataset as source for my datagrid (winForm).

When i want to store my changes in the datasource I call the
dataSet.GetChanges() wich should return all rows with changes...It does
except for the rows wich i have deleted. They aint represented in the
returning dataset.

How do i detect wich rows has been deleted from my dataSet? Does the
dataGrid handle the deletin wrong, so i cant detect deletion or have I
misundestooed the GetChanges.

I see there is a problem representing a row wich doesent excist....But what
should I do then?

Regards
Anders, Denmark
 
" DataSet1.Tables(0).GetChanges(DataRowState.Deleted) " Gives the Rows which are deleted

Hope this will solve ur proble

Jai
 
" DataSet1.Tables(0).GetChanges(DataRowState.Deleted) " Gives the Rows
which are deleted

But it dosent....The result is empty....Its like the dataGrid is not
handling the delteing in the right way...All other modifications can be
detected with the GetChanges.

I have done nothing special to the datagrid just drag and dropped it at
atached a dataSet to it...

Hope someone have a solution
Anders
 
Back
Top