slices 0 Newbie Poster

Hello Daniweb Users...

I have A GridView in ASP.Net with VB.net code

I load the Table with data for example ID, Name, Surname...
below i have 3 labels

I want when I press in GridView label1 to be selected ID label2 Name and label3 Surname...

Any Idea how to do that...

this is how it is done in VB.Net Windows Application:

Dim i As Integer
i = DataGridView1.CurrentRow.Index

Label1.Text = DataGridView1.Item(0, i).Value
Label2.Text = DataGridView1.Item(1, i).Value
Label3.Text = DataGridView1.Item(2, i).Value

but no idea in web application...

Thanks