int RowIndex = ((GridViewRow)lbtn.NamingContainer).RowIndex;
or
void gvName_RowCommand(Object sender, GridViewCommandEventArgs e)
{
if(e.CommandName=="Add")
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = CustomersGridView.Rows[index];
}
}
or
protected void gvName_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
int RowIndex = e.RowIndex;
}