View Single Post
Old January 6th, 2011, 01:21 PM
hlakam hlakam is offline
Registered User
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Cool CH 15 First Try It Out DataGridView

Hi All,

Thanks in advance for your help!

I am newb to visual basic, and am learning to program in VB 2005.

The problem I am having is with the first Try It Out in Chapter 15. I created the data grid view and made all the appropraite selections and ran the application. The application runs fine, but the data from CutomerQuery doesn't load in the application. When I preview the data under DataGridView Tasks, it loads just fine.

Here is the code that is generated by VB:

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'NorthwindDataSet.CustomerQuery' table. You can move, or remove it, as needed.
Me.CustomerQueryTableAdapter.Fill(Me.NorthwindData Set.CustomerQuery)
End Sub
End Class

I am running VB 2005 on Windows 7 Premium Home and Access 2003.