TheMadHater
Programmer
Trying to figure out why my data grid is not being filled with the following code.I am using visual studio express 2008 and the sqlserver express that comes with it.
Public Class Form1
Dim VendorsTableAdapter As New DataSet1TableAdapters.vendorsTableAdapter()
Dim DataSet1 As New DataSet1()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'loading the dataset'
VendorsTableAdapter.Fill(DataSet1.vendors).
end sub
What is wrong with this? the solution compiles but doesn't fill the data grid. I have a data set and a data set binding source on the bottom of the form in design mode. Does anyone know what I am doing wrong?
Public Class Form1
Dim VendorsTableAdapter As New DataSet1TableAdapters.vendorsTableAdapter()
Dim DataSet1 As New DataSet1()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'loading the dataset'
VendorsTableAdapter.Fill(DataSet1.vendors).
end sub
What is wrong with this? the solution compiles but doesn't fill the data grid. I have a data set and a data set binding source on the bottom of the form in design mode. Does anyone know what I am doing wrong?