Hi Sir
I have the problem with my event function "SelecteIndexChanged" when i selected combobox item in this item database fetch then fill the no.of textbox in match submited values.
i m code also write but ,one value match to every combo selected item
Private Sub cmbCtime_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbCtime.SelectedIndexChanged
Dim qry As String
Dim con As New connection
Dim ds As DataSet
qry = "Select * from COMPLOTT where Time_id='"& cmbTime.SelectedValue& "'"
ds = con.selectQuery(qry)
If ds.Tables(0).Rows.Count> 0 Then
txtc1.Text = ds.Tables(0).Rows(0).Item("CL_1")
txtc2.Text = ds.Tables(0).Rows(0).Item("CL_2")
txtc3.Text = ds.Tables(0).Rows(0).Item("CL_3")
txtc4.Text = ds.Tables(0).Rows(0).Item("CL_4")
txtc5.Text = ds.Tables(0).Rows(0).Item("CL_5")
txtc6.Text = ds.Tables(0).Rows(0).Item("CL_6")
txtc7.Text = ds.Tables(0).Rows(0).Item("CL_7")
txtc8.Text = ds.Tables(0).Rows(0).Item("CL_8")
txtc9.Text = ds.Tables(0).Rows(0).Item("CL_9")
txtc10.Text = ds.Tables(0).Rows(0).Item("CL_10")
End If
End Sub
pls anser me fastly
Thanks so mach
From
http://www.google.co.in/url?sa=t&so...7v38Cw&usg=AFQjCNFGt8Zck345guPRjC-bRWzHMgbyNw
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/