gridview with image button

Posted by Nikunjkakadiya under C# on 3/23/2011 | Points: 10 | Views : 2156 | Status : [Member] | Replies : 2
i have a grid view with the columns cityid, city name and edit. the edit column contains image button for all the rows. now i want that when i click on image button the cityname associated with that row is to be displayed in the textbox on the different page to do editing and when the add button is clicked the updated city must be again inserted in the gridview as well as the database.

please give the solution or any advice immediately so that it may help me




Responses

Posted by: Pavanandey on: 3/29/2011 [Member] Bronze | Points: 25

Up
0
Down


since you have already displayed the city name on the grid on, in the GV_RowCommand event get the selected row and select the city name to an variable and redirect to other page and do editing and then once editing is done then redirect the page to the display page which calls the grid load function

Thanks
Pavan Kumar
Mark Answer if this fits the need

Nikunjkakadiya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nikunjkakadiya on: 4/5/2011 [Member] Starter | Points: 25

Up
0
Down
as per your saying it is very easy but can you please give me some kind of code or full code for that. as i am new to this please help this out.
i will be thankful to you.

Nikunjkakadiya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response