Torna al Thread

Protected Sub Griglia_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles Griglia.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then If Condizione1 Then e.Row.Cells(8).Controls(0).Visible = True e.Row.Cells(8).Controls(1).Visible = True e.Row.Cells(8).Controls(2).Visible = True ElseIf Condizione2 Then e.Row.Cells(8).Controls(0).Visible = False e.Row.Cells(8).Controls(1).Visible = True e.Row.Cells(8).Controls(2).Visible = False Else e.Row.Cells(8).Controls(0).Visible = False e.Row.Cells(8).Controls(1).Visible = False e.Row.Cells(8).Controls(2).Visible = False End If End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5