hi,
how can i find out that what number of record(row) my cursor focused on in database?
thanks
label1.text= active row`s number ?????
example :
Dim baglanti AsNew SqlClient.SqlConnection()
Dim command As New SqlClient.SqlCommand()
Dim kisiler As SqlClient.SqlDataReader
baglanti.ConnectionString = "data source=instance2000;" & "initial catalog=dbf;" & "integrated security= SSPI"
baglanti.Open()
command = baglanti.CreateCommand
command.CommandText = "select number, name, surname from veriler where name=@name"
command.Parameters.AddWithValue("@name", TextBox1.Text)
kisiler = command.ExecuteReader()
If kisiler.HasRows Then
While kisiler.Read()
[B][I]label1.text= active row`s number ?????[/I][/B]
End While
Else
MsgBox("no record")
End If
baglanti.Close()
kisiler.Close()