How to edit row in gridview using modal popup extender. RRS feed

  • Question

  • User1197799509 posted

    Hi all,

    I've to edit rows in grid view for editing and I am using ImageButton for edit .

    Situation is that whenever I will click on the edit image, modal popup extender will get open of that particular row which I want to edit and then I can edit it and update. I am using entity framework for my data source.

    Please help me with the code as I am new in asp.net.



    Thursday, May 26, 2016 8:01 AM


  • User61956409 posted

    Hi Kusum,

    I am unable to find Row index of Gridview after clicked on image button.

    You could try to use the following code to get the row index.

    int rowindex = ((GridViewRow)((ImageButton)e.CommandSource).NamingContainer).RowIndex;

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 27, 2016 3:17 AM

All replies