private void consultarUsuarios() { // Consulta todos los datos del usuario y los mete al grid mvlPrincipal.ActiveViewIndex = 0; GrdUsuarios.DataSource = clUsuario.ConsultarUsuariosSistema(); GrdUsuarios.DataBind(); if (GrdUsuarios.Rows.Count > 0) { GrdUsuarios.UseAccessibleHeader = true; GrdUsuarios.HeaderRow.TableSection = TableRowSection.TableHeader; GrdUsuarios.FooterRow.TableSection = TableRowSection.TableFooter; string script1 = "$('#ContentPlaceHolder1_GrdUsuarios').DataTable({ \"scrollY\": \"270px\", \"scrollCollapse\": false, \"paging\": false });"; ScriptManager.RegisterStartupScript(this, this.GetType(), "ssss", script1, true); } }