Non mi scatta l'evento ModeChanged(

giovedì 30 luglio 2009 - 10.51

cicciuzzo Profilo | Junior Member

ciao a tutti

mi sono accorto che dopo che richiamo questo metodo non mi scatta l'evento "ModeChanged"

this.fvImages.ChangeMode(FormViewMode.Insert);

"EVENTO ModeChanged"

protected void fvProducts_ModeChanged(object sender, EventArgs e)
{
switch (this.fvProducts.CurrentMode)
{
case FormViewMode.Edit:
this.fvProducts.HeaderText = "Edit Mode";
this.fvProducts.HeaderStyle.BackColor = System.Drawing.Color.Red;
break;
case FormViewMode.Insert:
this.fvProducts.HeaderText = "Insert Mode";
this.fvProducts.HeaderStyle.BackColor = System.Drawing.Color.Green;
break;
default:
this.fvProducts.HeaderText = "Sola Lettura.";
this.fvProducts.HeaderStyle.BackColor = System.Drawing.Color.Blue;
break;
}

}

come mai???

ciao e grazie
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5