データテーブルからデータグリッドが取り込まれました。5 列目の (SQL の列名 = DDLS_Num) の値が 3 より大きい行全体の表示フォントの色を変更したいと考えています。
Using conn As SqlConnection = New SqlConnection(ConnectionString)
conn.Open()
Using comm As SqlCommand = New SqlCommand(sqlquery, conn)
Dim rs As SqlDataReader = comm.ExecuteReader
Dim dt As DataTable = New DataTable
dt.Load(rs)
datgDXLog.DataSource = dt
' If the 5th column's [or column name] value is >=3 Then
' DataGridView1.Rows[5] [OR COLUMN NAME?] .DefaultCellStyle.ForeColor = Color.Red
' EndIF
End Using 'comm
End Using 'conn