In rowupdating event

If we move our mouse on to the variables, which hold the cell values, we can see the old value instead of new updated value (Refer the debugging Screen Shot at the Top).

The hashtable contains former values of the row's cells.

If the grid contains templated columns or is bound to some of the fields from the data source, the Values and Old Values must be updated to add those missing values.

Otherwise missing cells will be nulled out by the auto update operation. The dictionary consists of the new values to be set on the row's unbound cells.

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

You could, for instance, validate any data in the Updating event and, if you find a problem, prevent the update by setting the Cancel property to True.

This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.

Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose.

Please refer to the Dev Website Terms of Use for more information.

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.

You must have an account to comment. Please register or login here!