A
Adrian Theodorescu
Hi All,
Does anybody know how can I make changes to the DataRow that is being
modified during the RowChanging or (RowChanged) event of the DataTable
class? For example, I have a column named "MODIFIED", which I want to set to
1 each time the row is changed. I tried to use code like:
protected void RowChanging(object sender, System.Data.DataRowChangeEventArgs
e) {
e.Row["MODIFIED"] = 1;
}
The code above throws an exception. The message is "Cannot change a proposed
value in the RowChanging event. Please help.
Regards,
Adrian
Does anybody know how can I make changes to the DataRow that is being
modified during the RowChanging or (RowChanged) event of the DataTable
class? For example, I have a column named "MODIFIED", which I want to set to
1 each time the row is changed. I tried to use code like:
protected void RowChanging(object sender, System.Data.DataRowChangeEventArgs
e) {
e.Row["MODIFIED"] = 1;
}
The code above throws an exception. The message is "Cannot change a proposed
value in the RowChanging event. Please help.
Regards,
Adrian