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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:04:03+00:00 2026-05-10T18:04:03+00:00

Alright, I’m trying to read a comma delimited file and then put that into

  • 0

Alright, I’m trying to read a comma delimited file and then put that into a ListView (or any grid, really). I have the delimiting part of the job taken care of, with the fields of the file being put into a multidimensional string array. The problem is trying to get it into the ListView.

It appears that there isn’t a real way of adding columns or items dynamically, since each column and item needs to be manually declared. This poses a problem, because I need the ListView to be as large as the file is, who’s size isn’t set. It could be huge one time, and small another.

Any help with this would be appreciated.


In response to Jeffrey’s answer.

I would do exactly that, but the problem that I’m running into is a basic one. How can I create these objects without naming them. Noobie question, but a problem for me, sadly. This is what I have so far.

int x = 0; int y = 0; while (y < linenum) {     while (x < width)     {         ListViewItem listViewItem1 = new ListViewItem(list[y,x]);         x++;     }     y++;     x = 0; } 

What should I do for the name of listViewItem1?

  • 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. 2026-05-10T18:04:04+00:00Added an answer on May 10, 2026 at 6:04 pm

    Just loop through each of the arrays in that you’ve created and create a new ListViewItem object (there is a constructor that takes an array of strings, I believe). The pass the ListViewItem to the ListView.Items.Add() method.

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

Sidebar

Related Questions

Alright so i need to open a .txt file that will be created in
Alright, so I've been trying to implement a simple binary search tree that uses
Alright, so I am currently trying to find all strings in a list that
Alright, currently I have my SWF hitting a php file that will go and
Alright, I am trying to accomplish this: When a user clicks a button that
Alright, here I am again trying to write code from scratch and I can't
Alright I'm pretty new to programming and stuff and I'm now trying to code
Alright, I'm extremely new to programming so odds are this is a really easy
Alright, I'm injecting some code into another process using the CreateRemoteThread/LoadLibrary trick. I end
Alright, I've just finished normalizing a table. What I didn't really consider when I

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.