[Fix(Chechadores)] se reparo un error ejecucion al entrar al catalogo con cero items en el grid

This commit is contained in:
Jorge Luis caudillo esparza
2025-06-24 14:28:11 -07:00
parent 3c2b07622f
commit 641b038873

View File

@@ -42,7 +42,10 @@ public partial class RH_CatChecadores : ClsPaginas
ObjRH.Dispose(); ObjRH.Dispose();
GvDatos.DataBind(); GvDatos.DataBind();
GvDatos.HeaderRow.Cells[1].Text = LblSubProyecto.Text; if(GvDatos.HeaderRow != null && GvDatos.HeaderRow.Cells.Count > 0)
{
GvDatos.HeaderRow.Cells[1].Text = LblSubProyecto.Text;
}
} }
private void CargaSubProyectos() private void CargaSubProyectos()