Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5995877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:01:25+00:00 2026-05-23T00:01:25+00:00

am working in windows application with c#.Am creating the listview items dynamically..i want to

  • 0

am working in windows application with c#.Am creating the listview items dynamically..i want to add columns and items for the listview and i did it too..i can create items but i cant add the columns name…my code is;

private void list_Load(object sender, EventArgs e)
    {
        listView1.Columns.Add("id",40, HorizontalAlignment.Left);
        listView1.Columns.Add("name", 60, HorizontalAlignment.Left);
        listView1.Columns.Add("price", 60, HorizontalAlignment.Left);
    }

    private void button1_Click(object sender, EventArgs e)
    {
        listView1.Items.Add(textBox1.Text);
        listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox2.Text);
        listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox3.Text);

        listView1.Items.Add(textBox3.Text);
        listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox1.Text);
        listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox2.Text);

        listView1.Items.Add(textBox2.Text);
        listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox1.Text);
        listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox3.Text);
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:01:25+00:00Added an answer on May 23, 2026 at 12:01 am

    On the ListView property window you have to set up “Details”

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Windows Forms application in VS 2008, and I want
I'm working on an application that displays some child windows which can either be
I am working on creating a windows mobile application and I have a quick
I am working on creating a thread safe control for my windows forms application.
We are creating sample application for windows mobile using Rijndael algorithm. Its working fine.
I have a Windows Forms application that I'm working on, but I'm having trouble
I'm working on a windows forms application (C#) where a user is entering data
I am working on a windows form application. How do i use the find
I'm working with an application that logs to Windows Application Log regularly (viewable through
I'm working on a Windows Forms (.NET 3.5) application that has a built-in exception

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.