From a1d83b38da4a421cce04204d4127a98b8a482a89 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 16 Jul 2018 10:44:32 +0200 Subject: [PATCH] fix comportamento sel/edit --- PUB/WebUserContols/mod_richiesteList.ascx | 2 +- PUB/WebUserContols/mod_richiesteList.ascx.cs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/PUB/WebUserContols/mod_richiesteList.ascx b/PUB/WebUserContols/mod_richiesteList.ascx index 89359f5..9cf3195 100644 --- a/PUB/WebUserContols/mod_richiesteList.ascx +++ b/PUB/WebUserContols/mod_richiesteList.ascx @@ -82,7 +82,7 @@
- + diff --git a/PUB/WebUserContols/mod_richiesteList.ascx.cs b/PUB/WebUserContols/mod_richiesteList.ascx.cs index e7e5e25..7d397ac 100644 --- a/PUB/WebUserContols/mod_richiesteList.ascx.cs +++ b/PUB/WebUserContols/mod_richiesteList.ascx.cs @@ -91,8 +91,26 @@ namespace PUB.WebUserContols protected void lbtReset_Click(object sender, EventArgs e) { + grViewElRich.EditIndex = -1; grViewElRich.SelectedIndex = -1; grViewElRich.DataBind(); } + + protected void grViewElRich_RowEditing(object sender, GridViewEditEventArgs e) + { + // imposto selezione a riga in edit + grViewElRich.SelectedIndex = -1; + } + + protected void grViewElRich_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) + { + grViewElRich.EditIndex = -1; + } + + protected void grViewElRich_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e) + { + grViewElRich.EditIndex = -1; + grViewElRich.SelectedIndex = -1; + } } } \ No newline at end of file