---
title: "How to add list in listview in C#"  
description: "How to add list in listview in C#"  
author: "Anupam Mishra"  
published: 2016-01-23  
updated: 2016-01-23  
canonical: https://www.mindstick.com/forum/33914/how-to-add-list-in-listview-in-c-sharp  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# How to add list in listview in C#

Hi All,I have created one [listview](https://www.mindstick.com/articles/12744/listview-in-android) and i want to adding a new list in a listview. Please give me a solution.Thank you.

## Replies

### Reply by Anupam Mishra

In this case we would need to have list that could be called in foreach loop .

Here, we are using a list as string type i.e List<String> list = new List<String>();

\
\

```
private void Form1_Load(object sender, EventArgs e)        {            List<string> mylist = new List<string>() { "Hi ", "I am", "List" };            foreach (string elem in mylist)            {                listView1.Items.Add(new ListViewItem(elem));            }                   }
```

**Output:**

![How to add list in listview in C#](https://www.mindstick.com/mindstickforums/ecef2a79-7e94-44ef-aad0-2165d2901f53/images/33020a6f-19c8-45d4-888a-874d19eb902b.png)**\**


---

Original Source: https://www.mindstick.com/forum/33914/how-to-add-list-in-listview-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
