Objectdatasource updating event args
If you want to influence the creation of the object which should be defined by the dataobjecttypename property then you'll have to process the On XXX event.
in other words, when you do that you're influencing the creation of the object on which the methods defined by the XXXmethod properties are executed.
"Bobby Edward" wrote: I've tried that as well as other ways...
The code runs fine but the row is still in an 'update' mode.
The business object is set and accessed using the Object Data Source Event Args. By adding an event handler delegate to handle the Object Data Source View.
Object Creating event, you can create an instance of the business object in custom code instead of the Object Data Source performing the instantiation.
As mentioned above due to different structure , certain fields needs to omitted before executing the Update method.
I want to initialise my object to load all the old values from the object (rather than a blank object as Object Data Source defaults to). At present I have a kludge to get the data from the Details View control directly - is this the right method?
My update function is Update(Obj As Test, original_Obj As Test). *if* I could avoid the default constructor, I could pre-build Obj from the database using ID=1, so that P1="A" and P2="X".
Data Source Select Arguments arguments, bool executing Select Count) cil managed event, it might be important to determine the nature of the event (retrieving data or retrieving row count) so that any additional work that is performed by the handler is not unnecessarily duplicated for every data retrieval operation that is performed.
The Object Data Source Event Args class is used in the Object Data Source View.
The user clicks edit, edits the record, clicks update and it runs my code.
Grid View Updated Event Args ) Handles gv Subusers.This is useful when you want a non-default instance of your business object or to call a non-default constructor to create the instance; the Object Data Source always calls the default constructor to create an instance of the business object it works with.You can also add an event handler delegate to handle the Object Data Source.Object Created event, which enables you to access any publicly exposed members of the business object to perform any additional initialization or work. On Object Creating(Object Data Source Event Args) and Object Data Source View.