---
title: "How to populate a listview in through a dataset"  
description: "How to populate a listview in through a dataset"  
author: "Anonymous User"  
published: 2014-08-27  
updated: 2014-08-27  
canonical: https://www.mindstick.com/forum/2171/how-to-populate-a-listview-in-through-a-dataset  
category: "asp.net"  
tags: ["asp.net", "populate a listview", "c#", ".net", "dataset", "populate a listview in through a dataset"]  
reading_time: 1 minute  

---

# How to populate a listview in through a dataset

Is it possible to [populate](https://www.mindstick.com/blog/60/populate-records-in-second-listbox-according-to-the-selection-in-first-list-box) a [listview](https://www.mindstick.com/articles/12744/listview-in-android) with a [dataset](https://www.mindstick.com/articles/19/dataset)? I have a [function that returns](https://www.mindstick.com/forum/157562/what-is-a-function-in-sql-create-a-function-that-returns-stu_name-when-passed-stu_id) a dataset. Why im asking this is because my [SQL](https://www.mindstick.com/articles/13115/types-of-keys-in-sql-or-oracle-database) is quite complicated and i can't [convert](https://www.mindstick.com/forum/2093/configurationmanager-appsettings-convert-n-to-n-why) it to a SQLDataSource.

## Replies

### Reply by Sumit Kesarwani

Hi Ankita, try this:\

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

listview.DataBind;


---

Original Source: https://www.mindstick.com/forum/2171/how-to-populate-a-listview-in-through-a-dataset

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
