IListSource does not contain any data sources.

T

troutbum

I am trying to bind a datagrid to a dataset that is returned via a
function. Public Function RetrieveList(ByRef r_DataSet As DataSet)
that sets the dataset that is passed by reference. When I try to bind
the datagrid to the dataset I get the following error "IListSource
does not contain any data sources."
 
G

Guest

Is it possible that there is nothing in the returned dataset?

A handy way to investigate is to insert

r_DataSet.WriteXML("c:\test.xml")

When you open text.xml, you'll see what the dataset looks like.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top