以下のコードを使用して、ボタンのステータス (有効または無効) を変更しています。しかし、それは最初のコントロールで機能しており、2 番目と 3 番目のコントロールの状態は変更されていません。このエラーを修正するのを手伝ってください。
If (e.Item.ItemType = DataControlRowType.DataRow) Then
Dim status As Button = CType(e.Item.FindControl("btnstatus"), Button)
If status IsNot Nothing Then
If status.Text = "Ready" Then
status.Enabled = True
ElseIf status.Text = "Assigned" Then
status.Enabled = False
Else
status.Enabled = False
End If
End If
'do what ever you want to do here using the value of your label
End If