From rowupdating No inscription sex chat
But ensure that the control/link is inside the gridview, only then can we cast sender as grid view.
This code is a bit complex but just add it knowing that we may refer to it in the future.
I'm using a sqldatasource control to populate the grid and want to write the update code in the Row Updating event. I can get the value of the first field using string old_Category = e. The hash key is the key of corresponding column and the value is the new value to be set.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.We have an application which creates maintenance screens based on an xml configuration file. This all works However, we have a new requirement to add Drop Down Lists to some columns to enforce data integrity.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.