this is the function that is called by all control when sending information to the server.
After investigation, it looks like the Selected Index Changed is not called because on the postback with update, the Drop Down List doesn't exists, therefore the event doesn't exist.
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
But ensure that the control/link is inside the gridview, only then can we cast sender as grid view.
If the values are alternated in the dictionary they are applied to the grid. The hashtable consists of the new values to be set on the row cells.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.Unfortunatley, I can't drop the dynamic creation, as this app is used to maintain three different systems, and being defined by an XML configuration file, means that the page can be used to maintain multiple tables.What happen if you leave the Bind Grid(); at the end but call Build Grid(); before finding the ddl?I worry it will still dont have your new value, but let`s try.