cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
With a default bindingnavigator there seems to be some code hidden somewhere behind the scenes and i want to edit or hook into it in some way..
for example when i click Add New on my binding nav (created by some wizard along with a binding source, data set and table adapter when i dropped a data source onto my form) it adds a new row to the data table.. but how? ive found AddingNew event on the binding source, which apparently lets me get access to a reference of where the new row will be when it is created... (it would have been nice if AddingNew fired after the new row had been created but before it was added)
so im going to try making a new one and populating it with some stuff
then if the user clicks one of the record movement buttons, some kind of validation is done.. but again.. WHERE? all i know is if i leave the PK field null then click nav, the app crashes with a Constraint Exception.. i want to handle it, or do some extended checks but i cant even find the code that performs the nav..
all the buttons on the default navigator.. where is the code that makes them do their magic? if you double click them you just get put to an empty click handler that doesnt override the default (hidden) code..
??
tia
for example when i click Add New on my binding nav (created by some wizard along with a binding source, data set and table adapter when i dropped a data source onto my form) it adds a new row to the data table.. but how? ive found AddingNew event on the binding source, which apparently lets me get access to a reference of where the new row will be when it is created... (it would have been nice if AddingNew fired after the new row had been created but before it was added)
so im going to try making a new one and populating it with some stuff
then if the user clicks one of the record movement buttons, some kind of validation is done.. but again.. WHERE? all i know is if i leave the PK field null then click nav, the app crashes with a Constraint Exception.. i want to handle it, or do some extended checks but i cant even find the code that performs the nav..
all the buttons on the default navigator.. where is the code that makes them do their magic? if you double click them you just get put to an empty click handler that doesnt override the default (hidden) code..
??
tia