IListSource does not contain any data sources.

Discussion in 'ASP .Net' started by troutbum, Oct 6, 2004.

  1. troutbum

    troutbum Guest

    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."
    troutbum, Oct 6, 2004
    #1
    1. Advertising

  2. 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

    "troutbum" wrote:

    > 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."
    >
    =?Utf-8?B?S2VuIENveCBbTWljcm9zb2Z0IE1WUF0=?=, Oct 6, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    6,880
  2. Assimalyst
    Replies:
    10
    Views:
    3,641
    Assimalyst
    Jul 8, 2005
  3. Mike P
    Replies:
    0
    Views:
    351
    Mike P
    Jan 31, 2007
  4. =?Utf-8?B?V2FsaWQ=?=

    The IListSource does not contain any data sources.

    =?Utf-8?B?V2FsaWQ=?=, Sep 13, 2007, in forum: ASP .Net
    Replies:
    10
    Views:
    1,144
  5. KK
    Replies:
    1
    Views:
    281
    Srimathi
    Jan 13, 2005
Loading...

Share This Page