+
diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
index 6d9e4d22..dfb83ba8 100644
--- a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
@@ -29,6 +29,8 @@ namespace MP_MAG.WebUserControls
private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e)
{
grView.PageSize = cmp_numRow.numRow;
+ grView.PageIndex = 0;
+ doReset();
}
#endregion Private Methods
@@ -58,12 +60,6 @@ namespace MP_MAG.WebUserControls
grView.SelectedIndex = e.NewEditIndex;
}
- protected void grView_SelectedIndexChanging(object sender, System.Web.UI.WebControls.GridViewSelectEventArgs e)
- {
- cmp_destClienti.codCli = $"{grView.SelectedValue}";
- showDet = true;
- }
-
///
/// Aggiunta nuovo record
///
@@ -109,16 +105,15 @@ namespace MP_MAG.WebUserControls
#endregion Public Methods
- protected void grView_RowCreated(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
- //// determino visibilità conollse in caso di selezione dettaglio
- //for (int i = 7; i < 10; i++)
- //{
- // e.Row.Cells[i].Visible = showDet;
- //}
- //e.Row.Cells[8].Visible = showDet;
- //e.Row.Cells[9].Visible = showDet;
- //e.Row.Cells[10].Visible = showDet;
+ showDet = true;
+ cmp_destClienti.codCli = $"{grView.SelectedValue}";
+ }
+
+ protected void grView_PageIndexChanged(object sender, EventArgs e)
+ {
+ doReset();
}
}
}
\ No newline at end of file
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx b/MP-MAG/WebUserControls/cmp_destClienti.ascx
index ba3c8c89..26d25d45 100644
--- a/MP-MAG/WebUserControls/cmp_destClienti.ascx
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx
@@ -7,14 +7,14 @@
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
index d7af8c2e..462a8e49 100644
--- a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
@@ -24,6 +24,7 @@ namespace MP_MAG.WebUserControls
{
hfCodCli.Value = value;
grView.DataBind();
+ grView.SelectedIndex = -1;
}
}
}
diff --git a/MP-MAG/WebUserControls/cmp_jumper.ascx.cs b/MP-MAG/WebUserControls/cmp_jumper.ascx.cs
index 8c17df14..d4883ae4 100644
--- a/MP-MAG/WebUserControls/cmp_jumper.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_jumper.ascx.cs
@@ -67,7 +67,7 @@ namespace MP_MAG.WebUserControls
// se l'operatore in sessione è DIVERSO da quello appena inviato --> effettuo NUOVO login
if (MatrOpr == memLayer.ML.IntSessionObj("MatrOpr"))
{
- // rimando a pagina di stampax ODL
+ // rimando a pagina di stampa x ODL
tgtPage = "printCartOdl";
}
else