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

  • Home
  • SEARCH
  • 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 7962763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:25:58+00:00 2026-06-04T05:25:58+00:00

C# Winforms: For a quick DEMO application: Saving doesn’t need to be a real

  • 0

C# Winforms:
For a quick DEMO application:
“Saving” doesn’t need to be a real Save, just an InMemory save is good enough.

I defined a hard-coded list of some items. I will fill up a Combobox with them.
I also have a hard-coded list of items in a spreadsheet or a listview, with checkboxes next to each item.
So User picks an item from the combobox and selects some items from that spreadsheet or listview, click a Save button and it will save that This item of the combobox is associated to those selected items of that spreadsheet or listview…

Question: What is a good structure that can keep the relationship between the item in the combobox with the items seleted for it from spreadsheet or listview –

  • 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-04T05:26:00+00:00Added an answer on June 4, 2026 at 5:26 am

    I’m not sure if I really understand your question, but I suppose you want to store one to many relationship. You can use some collection like generic list

    public class Person
    {
      public string Name {get; set;}
      public int Age {get; set; }
      public List<Person> Friends {get; set;} 
    }
    

    Then you can create BindingSource, fill it with values (set its DataSource to your list of items) and finally set combobox’s DataSource to binding source. Note that events should be implemented on bindingsource side.

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

Sidebar

Related Questions

I need to knock up a very quick prototype/proof of concept application to demo
Hi I need a quick solution to do filtering/sorting using the Winforms DataGridView control
My WinForms application has the standard Aero glass appearance on Vista/Windows 7. I want
I have two ListBox in my winforms application, I assigne a datasource for both
In .NET land what would be a good approach for quick prototyping of a
I have been working on a quick WinForms program. I found this SO question
I am writing a quick and dirty application that reads all the files from
In WinForms application when my application is started then the User Account Control dialogbox
I have a WinForms application that, at some point, will do some calculations that
In winforms application/asp.net sqlite works if i reference sqlite.dll. But when i try this

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.