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