IListSource does not contain any data sources.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • troutbum

    IListSource does not contain any data sources.

    I am trying to bind a datagrid to a dataset that is returned via a
    function. Public Function RetrieveList(By Ref 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 "IListSourc e
    does not contain any data sources."
  • Ken Cox [Microsoft MVP]

    #2
    RE: 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.Write XML("c:\test.xm l")

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

    Ken

    "troutbum" wrote:
    [color=blue]
    > I am trying to bind a datagrid to a dataset that is returned via a
    > function. Public Function RetrieveList(By Ref 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 "IListSourc e
    > does not contain any data sources."
    >[/color]

    Comment

    Working...