Add Modify/Edit rows in a ListView Web Server Control
In order for the user to edit a row in the ListView, they should be able to change the corresponding row in the ListView to an editable one.
When the user clicks on any of the Edit Link, the corresponding row in the ListView should be changed to an editable row. This can be achieved using the following code snippet:
Code:
ListView1.EditIndex = e.NewEditIndex;
e is an instance of ListViewEditEventArgs.
Once the ListView is in the edit mode, we have two possibilities. The first being: Saving the edited data back to the database and the second is to cancel the edit operation.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!