G
Guest
Hi
I am having problems populating a datagrid from a datareader Here is my code
Dim sqlGetTitleName As String = "Select name from product where supplier = '0064'" '" & SupplierI
Dim odbcConn As OdbcConnection = New OdbcConnection(Configuration.ConfigurationSettings.AppSettings("ConnectString")
Dim odbcCmd1 As OdbcCommand = New OdbcCommand(sqlGetTitleName, odbcConn
Dim drTitleName As OdbcDataReade
odbcConn.Open(
drTitleName = odbcCmd1.ExecuteReade
If Not drTitleName.HasRows The
MessageBox.Show("No Titles found for that vendor"
Exit Su
Els
DataGrid1.DataSource = drTitleNam
' 'CompletionCombo1.Items.Add(drTitleName.GetString(0)
End I
drTitleName.Close(
odbcConn.Close(
I am having problems populating a datagrid from a datareader Here is my code
Dim sqlGetTitleName As String = "Select name from product where supplier = '0064'" '" & SupplierI
Dim odbcConn As OdbcConnection = New OdbcConnection(Configuration.ConfigurationSettings.AppSettings("ConnectString")
Dim odbcCmd1 As OdbcCommand = New OdbcCommand(sqlGetTitleName, odbcConn
Dim drTitleName As OdbcDataReade
odbcConn.Open(
drTitleName = odbcCmd1.ExecuteReade
If Not drTitleName.HasRows The
MessageBox.Show("No Titles found for that vendor"
Exit Su
Els
DataGrid1.DataSource = drTitleNam
' 'CompletionCombo1.Items.Add(drTitleName.GetString(0)
End I
drTitleName.Close(
odbcConn.Close(