How to change the image of gridview cell at runtime?
I have a gridview that contains a column name "History" which has Plus (+) image button.
Clicking on the plus image button results in addition of new row beneath. Insertion of a new row should change the image of Plus image button to Minus (-) image button for that particular parent row only. Rest of the rows should have the Plus image button.
Q1. How to know the row index of the selected row, so that a image could be changed?
Secondly,If i click on Minus Image button, that should reset to Plus Image button and the added child row shouldn't be seen.
Q2. How to change the image back to Plus Image button?
I have added the Plus image button in gridview template field. Hence when grid is being loaded, Plus image is visible.