protected void RemoverItem(GridViewRow row) { string IdObj = ((Label)row.FindControl("lblIdCategoria")).Text; if (!string.IsNullOrEmpty(IdObj)) { CategoriaBLL categoriaBLL = new CategoriaBLL(); categoriaBLL.DeletaCategoriaPorId(Convert.ToInt32(IdObj)); CarregaCategorias(); } }