David Flores
January 6th, 2003, 03:20 PM
I am having a little trouble with the FindControl function, it seems that its not working or I am doing something wrong. Here is my situation.
I have a DataGrid with the standard edit/update/cancel links, when the user clicks the edit link i process the message in the edit command function. in that function i set the EditItemIndex property, update then grid display, then I add a DropDownList control to one of the cells. I doubled checked with the FindControl function that it was added properly.
Now after the user clicks the Update link, I process the message in the appropiate function. I went to get the item selected from the DropDownList control that I added in the Edit command. But the FindControl functions retuns NULL.
Has anyone else had this problem? Or has a solution to it?
I have a DataGrid with the standard edit/update/cancel links, when the user clicks the edit link i process the message in the edit command function. in that function i set the EditItemIndex property, update then grid display, then I add a DropDownList control to one of the cells. I doubled checked with the FindControl function that it was added properly.
Now after the user clicks the Update link, I process the message in the appropiate function. I went to get the item selected from the DropDownList control that I added in the Edit command. But the FindControl functions retuns NULL.
Has anyone else had this problem? Or has a solution to it?