Deleting a row in datagrid view

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

    Set PK_ID to link button's command args like that

    
    
    

    and access this PK_ID on event

    protected void btn_manage_click(object sender, CommandEventArgs e)
    {
        string ID = e.CommandArgument.ToString();
    
        //you delete code and gridview bind code
    }
    

提交回复
热议问题