01-11-17, 11:24 PM
PHP كود :
For Each row As DataRow In dt.Rows
Dim id As Integer = row("ID")
Dim state As Boolean = row("الحالة")
Dim btn As Button = TryCast(Me.Controls("Button" & id), Button)
If state Then
btn.BackColor = Color.LightPink
Else
btn.BackColor = Color.LightGreen
End If
Next
