Hash Table Problem
-
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. 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...
-
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. 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...