I found this code and tried to implement it in my project. But before running, I got few question. What I want to do is able to delete 1 row each time I click on a button or link.
1. Where is the firing event comes from?
2. Do I need to add a button or link each row (another column)?
3. How does the following code works?
protected void gvDetail_RowDeleting(object sender, GridViewDeleteEventArgs e)
int rowIndex = (int)gvDetail.DataKeys[e.RowIndex].Value;
protected void gvDetail_RowCommand(object sender, GridViewCommandEventArgs e)
if (e.CommandName == "Delete")
View Complete Post