G
Guest
Greetings,
I am trying to find out how to do something that on the surface seems like
it should be very simple to do.
I have a datagrid with a datatable bound to it using the SetDataBinding
method. What I am trying to accomplish is to detect if a value has changed
in any cell so that if a user closes the form without saving first, I want to
prompt to save changes. I don't want to prompt if there were no changes.
I tried doing it at the datatable level, but apparently changes to the
datagrid do not automatically get replicated to the underlying datasource
because that didn't work.
Is there some way to do this? I am using VS.NET 2003 and C#.
Thanks in advance for any help!
Mike
I am trying to find out how to do something that on the surface seems like
it should be very simple to do.
I have a datagrid with a datatable bound to it using the SetDataBinding
method. What I am trying to accomplish is to detect if a value has changed
in any cell so that if a user closes the form without saving first, I want to
prompt to save changes. I don't want to prompt if there were no changes.
I tried doing it at the datatable level, but apparently changes to the
datagrid do not automatically get replicated to the underlying datasource
because that didn't work.
Is there some way to do this? I am using VS.NET 2003 and C#.
Thanks in advance for any help!
Mike