IListSource does not contain any data sources.

  • Thread starter Thread starter troutbum
  • Start date Start date
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."
 
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
 
Back
Top