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. C#
  4. Hash Table Problem Urgent

Hash Table Problem Urgent

Scheduled Pinned Locked Moved C#
questionwpfwcfdata-structurescryptography
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.
  • N Offline
    N Offline
    Nishad85
    wrote on last edited by
    #1

    I have a datatable named EmployeeDT. I am using hastable to store data. I want to to take an employeeID of EmployeeName from data table When i select Employee name in the combobox and add to HashTable. But i am Binding only EmployeeName.So how can i get Emplyee Id to add to Hash Table? I am binding data to combobox using this method foreach(DataRow drow in EmployeeDT.Rows) { cboemployee1.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee2.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee3.Items.Add(drow["Name"].ToString().Replace("\"","\'")); } From this code how can i add key to the hash table

    P L 2 Replies Last reply
    0
    • N Nishad85

      I have a datatable named EmployeeDT. I am using hastable to store data. I want to to take an employeeID of EmployeeName from data table When i select Employee name in the combobox and add to HashTable. But i am Binding only EmployeeName.So how can i get Emplyee Id to add to Hash Table? I am binding data to combobox using this method foreach(DataRow drow in EmployeeDT.Rows) { cboemployee1.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee2.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee3.Items.Add(drow["Name"].ToString().Replace("\"","\'")); } From this code how can i add key to the hash table

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Please don't repost problems so soon after you've posted them before. I notice that you've been presented with an answer and that you have chosen to ignore this. This site isn't for us to do your work for you.

      Deja View - the feeling that you've seen this post before.

      1 Reply Last reply
      0
      • N Nishad85

        I have a datatable named EmployeeDT. I am using hastable to store data. I want to to take an employeeID of EmployeeName from data table When i select Employee name in the combobox and add to HashTable. But i am Binding only EmployeeName.So how can i get Emplyee Id to add to Hash Table? I am binding data to combobox using this method foreach(DataRow drow in EmployeeDT.Rows) { cboemployee1.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee2.Items.Add(drow["Name"].ToString().Replace("\"","\'")); cboemployee3.Items.Add(drow["Name"].ToString().Replace("\"","\'")); } From this code how can i add key to the hash table

        L Offline
        L Offline
        lost in transition
        wrote on last edited by
        #3

        The other thing is, don't use 'Urgent' in the subject line.


        God Bless, Jason
        I am not perfect but I try to be better than those before me. So those who come after me will be better than I am.

        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