Home > DeveloperSection > Forums > How to populate a listview in through a dataset
Ankita Pandey
Ankita Pandey

Total Post:183

Points:1285
Posted on    August-27-2014 1:55 AM

 ASP.Net
Ratings:


 1 Reply(s)
 534  View(s)
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.



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-27-2014 11:15 PM

Hi Ankita, 
try this:

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

listview.DataBind;


Don't want to miss updates? Please click the below button!

Follow MindStick