You need to add a commandfield for select. Then from that try these codes in your
GridView1 SelectedIndexChanged
event:
lblName.Text = GridView1.SelectedRow.Cells[1].Text;
lblSalary.Text = GridView1.SelectedRow.Cells[2].Text;
And that should do it from here.
Regards,
Eduard