Find control in edititemtemplate in rowupdating event
I worry it will still dont have your new value, but let`s try.The other solution is to drop that dynamic control creation and uses standard item and edit templates (declaratively in the aspx file) With just Build Grid() called, then the ddl is null.New Values["Required Column Field Name"] = my New Value; Thanks Kate.Kate, Those events don't fire - the error occurs before then.I have therefore added the relevant xml, and when creating the grid, create the column as a Template Field and the Edit Item as a Drop Down List with its own Sql Data Source.So far so good, this all works, the grid is displayed, the Drop Down List appears, filled with the correct data, shows the correct initial item and lets the user select another. The when trying to get the value from the Drop Down List in the Row Updating event, I cant find it. I create a Recursive Find Control method that ran through every control on the page, and it cant find it.Ive tried peeking in the cell controls in the debugger and its just not there. Ive duplicated it in a simpler test page, with a test database.