Access/update Telerik RadGrid item values in code-behind before ODS event handler
- by Brent
Hi there,
I need to update some of the values of the item being edited in my code-behind based on some values in a custom Edit Form on our Rad Grid. Can I access the item (and update some values) from one of the Grid's event handlers? Currently I'm storing the values in temporary variables and then injecting the new values in the ObjectDataSource's Inserting/Updating event handlers, but it would be much nicer if I could do it all in one spot. (I can't do it all in the ObjectDataSource event handlers as I can't access the controls inside my Grid's Edit Form.)
I've been playing with the ExtractValues and UpdateValues methods of the GridEditableItem object, but I'm not having any luck.
Any tips would be greatly appreciated :)