7
Answers

Gridview error plzz help

B M Suchitra

B M Suchitra

13y
1.9k
1
The error i am getting for the below code is:
Cannot implicitly convert System.Web.UI.WebControls.GridViewRow to System.Web.UI.WebControls.GridView


The code is as below:

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        GridView row = GridView1.SelectedRow;
        strv1 = row.Cells[1].Text;

    }
Am i missing out any namespace... PLZZZ HELP
Answers (7)