I have a gridview that supports updating records. I have an edit template with a Dropdownlist(ddl) that replaces textbox. The DDL is bound to a datasource and I need to append a value (the current value of this field to the DDL). This enables users to select the current value as well as alternate values from the DDL.
The issue is that I need the DDl to be bound ('<%# Bind("Element") %>') so the update function works but I need to bind it after the current value of the field has been appended to the DDL which now occurs during the RowDataBound event.
In a nutshell; I need to get the current value of a field appended to the DDL before the Bind so my update works (else I get a DDL does not contain vale error). What is the earliest point/event where I can retrieve the value of a field (after the edit button is clicked) in a gridview so I can do some plumbing before the Binding takes place?
Help?