Dear Experts
I use following codes to diplay data in combobox
str = "SELECT sno,name,city FROM employees"
cmd = New SqlClient.SqlCommand(str, con)
da = New SqlClient.SqlDataAdapter(cmd)
dt = New DataTable
da.Fill(dt)
With ComboBox1
.DataSource = dt
.DisplayMember = "name"
.ValueMember = "sno"
.SelectedIndex = 0
End With
Table has three fields as sno,name,city
Combobox displays name column
and data in table is as
sno--name-----city
1-------a------london
2-------b------moscow
3-------c-------tehran
In textbox1, I want to display sno against selected name
for example
If combobox1. text is=A
then
textbox1.text=1
please help