How to populate a listview in through a dataset

Total Post:183

Points:1285
 1082  View(s)
Ratings:
Rate this:

Is it possible to populate a listview with a dataset? I have a function that returns a dataset. Why im asking this is because my SQL is quite complicated and i can't convert it to a SQLDataSource.

  1. Post:378

    Points:2694
    Re: How to populate a listview in through a dataset

    Hi Ankita, 

    try this:

    listview.DataSource = YourDataSetName().Tables(0);

    listview.DataBind;

Answer