Deleting a row in datagrid view

前端 未结 5 707
情歌与酒
情歌与酒 2021-01-26 06:33

I want to Delete a row in the Gridview which is in the update panel . But instead of the command button ., i took a link button to get a confirmation message. Now if I press ok

5条回答
  •  借酒劲吻你
    2021-01-26 07:25

    bind the linkbutton id as the primary key. On client clicking the link button save that id in a hidden field. This hidden field value will be the id of row to be deleted.

    Then on the server click of link button delete the row corresponding to the hidden field value

提交回复
热议问题