forum

Home / DeveloperSection / Forums / add text from textbox to listview column in C#

add text from textbox to listview column in C#

Anonymous User 7493 17-Jul-2013
Hi developes!

I have a ListView with 3 columns. When I click a button, I want the first text to go to the first column, second text to the second column, and third 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


c# c# 
Updated on 17-Jul-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By