Visual indicator problem when record is changed
Posted on 2006-06-03
I have a form with a datagridview and a couple of fields on it. These are bound to a dataset.
When I select a record in the datagridview, the correct information shows up in the fields.
Now I want to give the user a visual indicator that data on the form has changed.
To do this I have put a panel at the top of the form. The idea is :
if the data has not changed the panel is green
If the data has been changed by the user, the panel goes red.
This is causing problems.
I had the event to change the colour in the textchange event. Problem: when i move to the next record, the text changes and I get a red flag when the user has not changed data.
I can work around this using the keypress event for text fields, the click event for checkboxes as these are not triggered when the text for the next record is displayed.
What do I do with the dropdown boxes to get the same effect?
Also just noticed : If I use the mouse and select and cut the data from the text field, the keydown event (obviously) is not triggered.
Rowchange OR rowchanging does not get triggered until I select the next record in the datagridview
Can anyone suggest a simple way to implement what I thought would be basic functionality?
I realy would like my users to know when a single field has been changed as they change it