Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2008 struggling to understand tableadapter/datagridview/bindingsource/dataset

$
0
0
I read about these things and it does not make any sense to me at all. From my perspective the dataset/tableadapter/bindingsource come togethter to form the datagridview in the same way that the father, the son, and the holy ghost combine to form the god of Catholics.

I have a dataset called opccc_queuedataset.
On this dataset there are two table adapters "Queue1", and "lucky 7 timely filing"

I would like to have my datagridview default to "queue1" and then, when the user clicks a button, have it fill the datagridview with the query on "luck 7 timely filing". Each tableadapter is pulling data from a seperate table on my database.


Code:

Me.Queue1TableAdapter.Fill(Me.OPCCC_QUEUEDataSet.Queue1, empname)
'I understand this fills my datagridview with the data from the queue1 tableadapter
Me.Queue1TableAdapter.Fill(Me.OPCCC_QUEUEDataSet.Lucky_7_Timely_Filing, empname)
'this gives an error that says "Value of type 'mylucky7.OPCCC_QUEUEDataSet.Lucky_7_Timely_FilingDataTable' cannot
'be converted to 'mylucky7.OPCCC_QUEUEDataSet.Queue1DataTable'."

What combination of dataset/bindingsource/table adapter do I need to have to switch what data my datagridview will show?

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>