DataGrid (Grid view) Question: Download Questions PDF
How do you check whether the row data has been changed?
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. Generally, the best strategy is to track the primary keys of the affected rows. For example, you can maintain an ArrayList object that contains the primary keys of the rows to update.
Download DataGrid (Grid view) Interview Questions And Answers PDF
|Previous Question||Next Question|
|What is the difference between the System.Web.UI.WebControls.DataGrid and and System.Windows.Forms.DataGrid?||Why can not I edit the results of a query in the SQL Editor?|