Interview Question

Created by admin on Sat, 17/11/2012 - 16:54
Question: 

How do you check whether the row data has been changed?

Language: 
Answer: 
The definitive way to determine whether a row has been dirtied is to handle the changed event for the controls in a row. For example, if your grid row contains a TextBox control, you can respond to the control's TextChanged event. Similarly, for check boxes, you can respond to a CheckedChanged event. In the handler for these events, you maintain a list of the rows to be updated.