how to know some fields were modified by user?

  • Thread starter Thread starter andy
  • Start date Start date
A

andy

dear all,
how to know some fields were modified by user?
list bellow my project:
components: DataGridView,DataSet
when user change the DataGridView colmons field value,we can use
Dataset.Getchanges.tables[0] to list current record was modified.
but I can't know which fields were edited,only know the user edit the row.
even though I can't know it if a new record or edited record.
thanks all!!!
andy
2007-08-23
 
dear all,
how to know some fields were modified by user?
list bellow my project:
components: DataGridView,DataSet
when user change the DataGridView colmons field value,we can use
Dataset.Getchanges.tables[0] to list current record was modified.
but I can't know which fields were edited,only know the user edit the row.
even though I can't know it if a new record or edited record.
thanks all!!!
andy
2007-08-23

Each DataRow will keep track of the original values in the columns.
You need compare to the original value with the current value to
determine whether a column has been modified.
 
Listen to

public event DataRowChangeEventHandler RowChanged;

public event DataRowChangeEventHandler RowChanging;

event of data table and handle the diffrences of the row data instances.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top