I'm using Visual Basic 2008 in Windows 7. I've added a datasource to my project and dragged an element, a sort query, from Data Sources onto my form. It automatically created a DataViewGrid and placed this statement in my form load event:
The datagridview shows all the fields/columns. When I preview the data element, a sort query, from right clicking the element, selecting Preview Data, and click Preview in the Preview Data dialog box, the data appears. But the data does not appear when I run the app. The datagridview is empty. What am I missing to get the data to display in the grid at run time? I did notice that in the properties for the dataviewgrid the databindings property is empty. Is that right or am I supposed to do something there?
Code:
Me.SortBillsTableAdapter.Fill(Me.DoBills_2009DataS et.sortBills)