hi all,
i need to track down if the tableadapter.update command will do an insert, update, or delete on my datatable.
i used typed datasets on my application. my bindingnavigator, bindingsource where all generated automatically when i dragged a table from my data sources window to my form. then when i double-clicked my save button on the bindingnavigator it pointed me to the savebutton.click event where there's the autogenerated validate, endedit and update commands.
now, my application will calling 3 different procedures depending on what action the tableadapter.update will do. for example, if there's an insert, i will add on the savebutton.click and call proc_when_insert if there's an update, i will add proc_when_update procedure and so on.
how do i do this?
thanks.
i need to track down if the tableadapter.update command will do an insert, update, or delete on my datatable.
i used typed datasets on my application. my bindingnavigator, bindingsource where all generated automatically when i dragged a table from my data sources window to my form. then when i double-clicked my save button on the bindingnavigator it pointed me to the savebutton.click event where there's the autogenerated validate, endedit and update commands.
now, my application will calling 3 different procedures depending on what action the tableadapter.update will do. for example, if there's an insert, i will add on the savebutton.click and call proc_when_insert if there's an update, i will add proc_when_update procedure and so on.
how do i do this?
thanks.
Last edited by a moderator: