Files
b2bcondomini.it/PUB/WebUserContols/mod_ER_grid.ascx.cs
T
2018-07-16 11:13:12 +02:00

83 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace PUB.WebUserContols
{
public partial class mod_ER_grid : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
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;
}
/// <summary>
/// Gestione condominio
/// </summary>
public string idxCond
{
get
{
return hfCondominio.Value;
}
set
{
hfCondominio.Value = value;
}
}
/// <summary>
/// Min stato filtraggio
/// </summary>
public string StatoMin
{
get
{
return hfStatoMin.Value;
}
set
{
hfStatoMin.Value = value;
}
}
/// <summary>
/// Max stato filtraggio
/// </summary>
public string StatoMax
{
get
{
return hfStatoMax.Value;
}
set
{
hfStatoMax.Value = value;
}
}
}
}