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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:45:42+00:00 2026-06-06T10:45:42+00:00

So at the moment I have a multidimensional array string[,] items = new string[100,

  • 0

So at the moment I have a multidimensional array

string[,] items = new string[100, 4];

I then gather the needed inputs to put them into the array, and then display them in a listbox

items[itemcount, 0] = id;
items[itemcount, 1] = newprice;
items[itemcount, 2] = quant;
items[itemcount, 3] = desc;

listBox1.Items.Add(items[itemcount, 0] + "\t" + items[itemcount, 3] + "\t " + items[itemcount, 2] + "\t " + items[itemcount, 1]);
listBox1.SelectedIndex = listBox1.Items.Count - 1;

So then the user can if they want select an item from the listbox to delete that item. When it came to deleting an item I realized that an array is not suitable. So should I create 4 different lists and use the list.Remove method to delete them or is there a better way that I dont have to work on 4 different things, also the user is running an older computer with WinXP would i have to worry about performance with 4 different lists? Is there anything such as a multidimensional list?

Thanks heaps for your help

  • 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-06T10:45:43+00:00Added an answer on June 6, 2026 at 10:45 am

    You are trying to reinvent List of instances of a class. Something like

    class Item {
      public int Id {get;set;}
      public double Price {get;set;}
      public double Quantity {get;set;}
      public string Description {get;set;}
    }
    
    var myItems = new List<Item>();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment I have to manually add items to my array but I
At the moment I have an array constructed like this: Car[] garage = new
At the moment I have the following code which works fine. label = new
At the moment I have just this route defined routes.MapRoute( Default, {controller}/{action}/{id}, new {
At the moment I have this: try{ // Create file FileWriter fstream = new
I have a multidimensional array, which I want to initialize in a simple and
I have a multidimensional array. I need a function that checks if a specified
At the moment I have a check to see if a string has specific
At the moment I have to go to /usr/java/apache-solr-1.4.0/example and then do: java -jar
At the moment i have declared my UIImage. I load in an image into

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.