42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace PUB.WebUserContols
|
|
{
|
|
public partial class mod_statoRichByCond : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
if (!Page.IsPostBack)
|
|
{
|
|
grView.PageSize = cmp_numRow.numRowPag;
|
|
hfIdxCond.Value = mod_ER_selCondominio.condSelected;
|
|
}
|
|
cmp_numRow.eh_newNum += Cmp_numRow_eh_newNum;
|
|
mod_ER_selCondominio.eh_selected += Mod_ER_selCondominio_eh_selected;
|
|
}
|
|
private void Mod_ER_selCondominio_eh_selected(object sender, EventArgs e)
|
|
{
|
|
hfIdxCond.Value = mod_ER_selCondominio.condSelected;
|
|
}
|
|
|
|
private void Cmp_numRow_eh_newNum(object sender, EventArgs e)
|
|
{
|
|
grView.PageSize = cmp_numRow.numRowPag;
|
|
}
|
|
/// <summary>
|
|
/// Update num righe selezionate
|
|
/// </summary>
|
|
private void updNumRows()
|
|
{
|
|
int rowCount = 0;
|
|
rowCount = grView.PageSize * grView.PageCount;
|
|
lblNumRecords.Text = string.Format("~{0} rec", rowCount);
|
|
}
|
|
protected void grView_DataBound(object sender, EventArgs e)
|
|
{
|
|
updNumRows();
|
|
}
|
|
}
|
|
} |