---
title: "add text from textbox to listview column in C#"  
description: "add text from textbox to listview column in C#"  
author: "Anonymous User"  
published: 2013-07-17  
updated: 2013-07-17  
canonical: https://www.mindstick.com/forum/1301/add-text-from-textbox-to-listview-column-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# add text from textbox to listview column in C#

Hi developes!

I have a [ListView](https://www.mindstick.com/articles/12744/listview-in-android) with 3 columns. When I [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) a [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net), I want the first [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) to go to the first [column](https://www.mindstick.com/forum/33860/how-to-calculate-column-summary-in-sql-server), [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) text to the second column, and [third](https://yourviews.mindstick.com/story/4957/the-significance-of-the-third-eye-in-hinduism-more-than-just-a-symbol) text to the third column, but it's not working.

```
private void button1_Click(object sender, EventArgs e){    listView1.Column[0].SubItems.Add("my first text")    listView1.Column[1].SubItems.Add("my second text")    listView1.Column[2].SubItems.Add("my third text")}
```

please help me

\

Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by shreesh chandra shukla

Solution!

Items first before subitems so try:

listView1.View = View.Details;

ListViewItem lvwItem = listView1.Items.Add("my first text");

lvwItem.SubItems.Add("my second text");

lvwItem.SubItems.Add("my third text");


---

Original Source: https://www.mindstick.com/forum/1301/add-text-from-textbox-to-listview-column-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
