B M Suchitra

B M Suchitra

  • NA
  • 507
  • 418k

Gridview error plzz help

Jan 28 2011 3:12 AM
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)