I keep getting an error when trying to populate my datagrid. everytime it hits the line for the mapping name it throws a null reference exception??? what am i doing wrong?
VB Code:
Try Dim ds As New Data.DataSet Dim da As New OleDb.OleDbDataAdapter("select * from library_tbl", cn) da.Fill(ds) Me.DataGrid1.DataSource = ds With Me.DataGrid1.TableStyles With .Item("dgtsLibId") .MappingName = "library_tbl" End With End With Catch ex As Exception MessageBox.Show(ex.ToString) End Try
