Why does my datagridview in ASP.net can't be clicked?

tetey_mallar

New member
I want to transfer the data in datagridview to textbox, nothing happens when i click a cell.

This is my code:


protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView1.SelectedRow;

tbairplaneid.Text = row.Cells[0].Text;
tbairplanename.Text = row.Cells[1].Text;

}


Thank you
 
Back
Top