---
title: "ListView Control in C#.Net"  
description: "A ListView control allows displaying a list of items. ListView is very similar to windows explorer. In ListView you can list the items in the ListV"  
author: "Anonymous User"  
published: 2011-01-24  
updated: 2020-03-29  
canonical: https://www.mindstick.com/articles/406/listview-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# ListView Control in C#.Net

A ListView control allows displaying a list of items. ListView is very similar to windows explorer. In [ListView you can list the items](https://www.mindstick.com/Articles/1356/datagridview-printing-in-c-sharp) in the ListView, icon view, detail view.\

#### How to use ListView Control

Drag and drop ListView control from the toolbox on the WindowForm.

![ListView Control in C#.Net](https://www.mindstick.com/mindstickarticle/39d30fac-2fe1-4306-9e23-3f9be34cac83/images/3d18979b-6d9b-4aa6-ad35-f263992c3080.png)

##### Code:

```
using System;using System.Text;using System.Windows.Forms;  namespace WindowsFormsApplication1{     public partial class frmListView : Form    {         public frmListView()         {            InitializeComponent();         }         private void frmListView_Load(object sender, EventArgs e)         {            //specify which view should display of listview Item            listView1.View = View.Details;            // add columns in ListView            listView1.Columns.Add("Emp Id", 100, HorizontalAlignment.Left);            listView1.Columns.Add("Emp Name", 100, HorizontalAlignment.Left);            // add Items in ListView            listView1.Items.Add("UMS101").SubItems.Add("Yash");            listView1.Items.Add("UMS102").SubItems.Add("Raj");         }    }}
```

##### Run the project

![ListView Control in C#.Net](https://www.mindstick.com/mindstickarticle/39d30fac-2fe1-4306-9e23-3f9be34cac83/images/d6851897-c19a-4ed2-b9a1-5bf560b74395.png)

You can change its view in details, LargeIcon, SmallIcon, Tile, List through its view property.

When you set listView1.View = View.Tile; then [listview data will show in Tile](https://www.mindstick.com/Articles/441/cell-formatting-of-datagridview-in-dot-net) View.

![ListView Control in C#.Net](https://www.mindstick.com/mindstickarticle/39d30fac-2fe1-4306-9e23-3f9be34cac83/images/2d3a00c0-d186-4bbc-a7fb-a9d593105e51.png)

ListView Properties:\

**View:** Defines how items are displayed in the control.

**CheckBoxes:** Indicates whether a checkbox appears next to each item in the control.

##### Example:

```
private void frmListView_Load(object sender, EventArgs e){           // appears checkBox next to each Item           listView1.CheckBoxes = true;}
```

##### Output

The CheckBox will appear when the application run.

![ListView Control in C#.Net](https://www.mindstick.com/mindstickarticle/39d30fac-2fe1-4306-9e23-3f9be34cac83/images/ecc3f771-c930-48e3-89da-fa0b3a62c55c.png)

**Tile size:** Defines the size of the tiles shown in the tile view.

**BackColor:** Set BackColor of ListView.

##### Example:

```
private void frmListView_Load(object sender, EventArgs e){           // Change BackColor Of ListView           listView1.BackColor = Color.CadetBlue; }
```

![ListView Control in C#.Net](https://www.mindstick.com/mindstickarticle/39d30fac-2fe1-4306-9e23-3f9be34cac83/images/917c875d-bc48-4484-af35-743976c40d73.png)\

---

Original Source: https://www.mindstick.com/articles/406/listview-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
