DataTable row changed

  • Thread starter Thread starter RA
  • Start date Start date
R

RA

Hi

Is there a way to know if rows has been added/deleted from a DataTable (not
using the exevts)?

Thanks,
Ronen
 
Hi,

DataTable has two events - RowChanging and RowChanged.
Otherwise, you would want to iterate through rows and check their RowState.
If you want to check if there are changes in dataset, there is HasChanges()
method.
Does this help?
 
Hi RA,

You can iterate through rows in datatable and check if RowState ==
DataRowState.Added
 
Back
Top