Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. LINQ + Combobox

LINQ + Combobox

Scheduled Pinned Locked Moved LINQ
csharplinqsalesquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Knoen
    wrote on last edited by
    #1

    Im haveing a little trouble with one combobox. I have a table with two fields. One with codes and one descriptions of the code. Now, i also have a customers table wich has one code atached to it. I want to populate the combobox with all the codes from the first table and then select the code from the current customer in the customers table. Im trying but i cant seem to get it right. Further i want to be able to change the item in the combobox so that it writes the code that i change back to the customers row in the customers table. How is this done? Thanx

    M J 2 Replies Last reply
    0
    • K Knoen

      Im haveing a little trouble with one combobox. I have a table with two fields. One with codes and one descriptions of the code. Now, i also have a customers table wich has one code atached to it. I want to populate the combobox with all the codes from the first table and then select the code from the current customer in the customers table. Im trying but i cant seem to get it right. Further i want to be able to change the item in the combobox so that it writes the code that i change back to the customers row in the customers table. How is this done? Thanx

      M Offline
      M Offline
      mexx_edm
      wrote on last edited by
      #2

      The combobox is bad. It doesn't work with LINQ very well. You should develop one for yourself.

      1 Reply Last reply
      0
      • K Knoen

        Im haveing a little trouble with one combobox. I have a table with two fields. One with codes and one descriptions of the code. Now, i also have a customers table wich has one code atached to it. I want to populate the combobox with all the codes from the first table and then select the code from the current customer in the customers table. Im trying but i cant seem to get it right. Further i want to be able to change the item in the combobox so that it writes the code that i change back to the customers row in the customers table. How is this done? Thanx

        J Offline
        J Offline
        jaypatel512
        wrote on last edited by
        #3

        All you need is databinding. . Hope you know the databinding using LINQ. if not tell me i can explain you a bit. .

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups