Try this and see if it works. I don't use DataSets.
Private Sub LoadGrid()
Try
Dim oODBCConnection As Odbc.OdbcConnection
Dim sConnString As String = "Driver={Microsoft Access Driver (*.mdb)};Dbq=SRS.mdb;"
Dim comm As Odbc.OdbcCommand
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()
Dim dr As Odbc.OdbcDataReader
Dim sql As String
Dim rownum as Integer = 0
sql = "SELECT * FROM StudentInfo"
comm = New Odbc.OdbcCommand(sql, oODBCConnection)
dr = comm.ExecuteReader()
With Me.DataGridView.Rows
.Clear()
While dr.Read()
.Add(dr!field1, _
dr!StudentIsPresentTableFieldName, _
dr!field3)
With Me.DataGridView.Rows(rownum)
If .Cell(1).Value = 1 Then
.DefaultCellStyle.BackColor = Color.Yellow
.DefaultCellStyle.SelectionBackColor = Color.Yellow
ElseIf .Cell(1).Value = 2 then
.DefaultCellStyle.BackColor = Color.Silver
.DefaultCellStyle.SelectionBackColor = Color.Silver
End If
End With
rownum = rownum + 1
End While
End With
dr.Close()
oODBCConnection.Close()
comm.Dispose()
oODBCConnection.Dispose()
Catch ex As Exception
MessageBox.Show("FAILED TO LOAD GRID: " & ex.Message)
End Try
End Sub