こんにちは、チェック ボックスのある列を持つデータ グリッドがあります。特定の条件でチェックボックスを無効にしたい。そこから DataSet を取得する SQL DB があり、データ グリッド内にデータ セットを入力します。これが私のコードの一部です
Dim loopRow As Integer = ds.Tables(0).Rows.Count - 1
Dim ColDS As New DataColumn("Status")
ds.Tables(0).Columns.Add(ColDS)
For loopval As Integer = 0 To loopRow
If ds.Tables(0).Rows(loopval)(8).ToString = "True" Then
ds.Tables(0).Rows(loopval)(11) = "Confirmed"
Else
ds.Tables(0).Rows(loopval)(11) = "Pending"
End If
Next
For loopDate As Integer = 0 To ds.Tables(0).Rows.Count - 1
If ds.Tables(0).Rows(loopDate)("ProgramTours_FromDate") <= Now.Date Then
End If
Next
GrdAgentBL.DataSource = ds
GrdAgentBL.DataBind()