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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:53:00+00:00 2026-05-11T14:53:00+00:00

I have a winform data entry and retrieval program called CaseNotes. This has a

  • 0

I have a winform data entry and retrieval program called CaseNotes. This has a form that that fill in. On the form there are multiple dropdown,checkbox controls that I are data-bound to a tblCNMaintItem. The structure of that table is –>

ItemID | CategoryID | ItemDescription | OrderID | IsActive

There is a seperate Category table that provides that categoryID’s. A CategoryID maps to a Single Control on the Case Notes Form.

My question is two-fold:

  1. How should I go about getting the value for each item? As in, I grab the itemDescription by CategoryID to populate the controls but on SaveNewCaseNote() I need to get the corresponding ItemID instead. How can I accomplish this? Should I create a dictonary for each category(Control)? Should I Enumerate the ItemID/ItemDescription combo?

  2. EDIT Forget #2 as I have found my answer.

Thanks!

EDIT

Okay, for some reason I have failed to state this clearly and it is generating confusion. My DB consists of 3 tables. tblCaseNotes, tblCNMaintCategory, tblCNMaintItem. CaseNotes contains a complete ‘Case Note’ per row. The Maint tables are for the multiple choice answers when filling out a CaseNote. Example: They must select a ‘Contact Location’. The options ‘Office’ or ‘Member’s Home’. In tblCNMaintCategory there is a enntry like so–>

CategoryID = 3, CatgoryName = Contact Location, IsActive = True

In tblCNMaintItem there are 2 entries like so –>

ItemID=51, CategoryID=2, ItemDescription=Office, OrderID=0, IsActive=True ItemID=52, CategoryID=2, ItemDescription=Member’s Home, OrderID=0, IsActive=True

In tblCaseNote there would be an entry like so –> CaseNoteID=3243, PersonID=454676, AssocContactLocations= 51, and then many more columns following same pattern

Question 1 is pertaining to wanting to store the ItemID in AssocContactLocation versus the ItemDescription. I am thinking a

Dictionary <strng, int> cLocateItems(itemDescription,itemID) maybe…

Does this help?

Thanks everyone for the time and effort!

  • 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-11T14:53:01+00:00Added an answer on May 11, 2026 at 2:53 pm

    After your edit, I think you mean, ‘How can I display the text but still use the numeric ID when I save the data?’

    If that is your question, then yes your dictionary idea would work.

    It’s been a long time since I’ve done any CRUD work, but I recall that you could store the ID in the drop down box along with the text. Then when you do your update, you would use the ID instead of the text. This option may be easier than your dictionary idea.

    If I have still misunderstood your question, I guess someone else will have to help.

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

Sidebar

Ask A Question

Stats

  • Questions 109k
  • Answers 110k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use projection to get only the values you need, especially… May 11, 2026 at 9:29 pm
  • Editorial Team
    Editorial Team added an answer Disclaimer I am a fierce advocate of using a proper… May 11, 2026 at 9:29 pm
  • Editorial Team
    Editorial Team added an answer Have you tried specifying the selected tab at the time… May 11, 2026 at 9:29 pm

Related Questions

I am a solo dev building a WinForm App, C# & .Net 3.5, in
I'm currently creating a WinForm in VB.NET bound to an access database. Basically what
I know asp.net and winform development. I am not the type of developer who
I'm facing the need to enter ragged data in a WinForms application. Some columns

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.