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 8793969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:11:25+00:00 2026-06-13T23:11:25+00:00

I have two columns in my listView, lets call them Column1, and Column2. Is

  • 0

I have two columns in my listView, lets call them Column1, and Column2.

Is it possible to add a bunch of items to column1 only, and make it so those items only go strictly under column1 and not column2?

When I add items it adds an item to Column1, and then Column2 and I don’t want that.

How would I go about doing this?

Here’s some of my test code. I made an array with two strings. I want both of those strings to go under column1 (each in their own row) and not under column2. When I test it, they still go under column1 AND column2 which is what I don’t want.

string[] h = {"Hi","Hello"};
listViewGoogleInsight.Items.Add(new ListViewItem(h));
  • 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-06-13T23:11:26+00:00Added an answer on June 13, 2026 at 11:11 pm

    Maybe this will help:

    string[] h = {"Hi","Hello"}; 
    foreach(string s in h) //this in case when you have more that two strings in you array
       listViewGoogleInsight.Items.Add(new ListViewItem(s));
    

    In your code you are passing a string array to the constructor of a ListViewItem which is creating one ListViewSubitem of the “Hello”. You should add each string separately.

    EDIT: After your request to add only to column2 you can do it like this. You must pass empty string to for the first column because you need to make a ListViewItem for the first column and additional ListViewSubitems for every other column.

        string[] h = { "Hi", "Hello" };
    int count=0;
                    foreach (string s in h) //this in case when you have more that two strings in you array
                    {
                        ListViewItem lvi = listView1.Items[count++];
                        lvi.SubItems.Add(s);
                        listView1.Items.Add(lvi);
                    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two columns in my listView, lets call them Column1, and Column2. Is
I have to add two columns in a ListView . One column shows different
I have ListView that uses a GridView to display several columns of data. Two
I have Listview on WinForm I need to have two columns but without headers,
I have a listview with two columns and I'm using a context menu to
I have a ListView that has two columns, one for a zone name and
I have a listview with two columns Devicename and DeviceAddress. I have maintained an
I have a simple WPF ListView with two columns defined. By default when you
Hi I have a listview with two columns, Folder & Status . How do
I have a listview with 3 coloumns. The first two columns has values and

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.