Dharmesh Sharma

Dharmesh Sharma

  • NA
  • 905
  • 924.3k

how to get combobox value in windwoform

Jun 8 2011 5:47 AM
hello
 i my window form i have combo box and i bind with sql server

the combobox bind like this

combobox1.datasource=dt;
combobox1.valuemember="id"; 
combobox1.displaymember="name";


now when i select tha name in combobox how i get the id of selected name

plz help me

Answers (1)