Torna al Thread

Protected Sub Gw_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles Gw.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then Dim attivo As Boolean = System.Web.UI.DataBinder.Eval(e.Row.DataItem, "attivo") Dim Chk As CheckBox = CType(e.Row.Cells(0).FindControl("Checkbox_ID"), CheckBox) Chk.Checked = attivo If attivo Then Chk.Enabled = False Else Chk.Enabled = True End If End If End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5