A
anonymoushamster
I have a gridview and a dropdown that appears in my custom edit row
( i added it to the edititemtemplate).
However I cant reference it/ find it. The dropdown is in the first
columnd and the below is located within :
public void rowedit(Object sender, GridViewEditEventArgs e)
DropDownList s =
(DropDownList)GridView1.Rows[e.NewEditIndex].Cells[0].FindControl("ddlPersonCode");
Response.Write("ID IS " + s.ID);
This results in a Null reference exception (it hasnt been found)
Please any ideas?
( i added it to the edititemtemplate).
However I cant reference it/ find it. The dropdown is in the first
columnd and the below is located within :
public void rowedit(Object sender, GridViewEditEventArgs e)
DropDownList s =
(DropDownList)GridView1.Rows[e.NewEditIndex].Cells[0].FindControl("ddlPersonCode");
Response.Write("ID IS " + s.ID);
This results in a Null reference exception (it hasnt been found)
Please any ideas?