Deleting a row in datagrid view

前端 未结 5 755
情歌与酒
情歌与酒 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:24

    I presume you have a method which sends a delete query.

    Make a RowDeleting event handler, pass your row index using e.RowIndex to the delete method.

    Use this e.RowIndex to write a query to delete the 'n'th row of your table. and then bind the data to your gridView.

提交回复
热议问题