protected void GridView1_SelectedIndexChanged(object sender, System.EventArgs e)
{
Int32 index = GridView1.SelectedIndex;
lblrep.Text = GridView1.Rows[index].Cells[2].Text;
btndownload.Enabled = true;
}
You are using an array with these ( ) instead of these [ ].
() for VB
[] for C#