Drag-And-Drop Binding - Simple Question
-
Hi I have the following questions with regards to drag-drop type of databinding in windows forms. Platform: windows forms data bound form with the database as a source... Bound column is defined as Identity in target SQL Server database The databinding is created by draging-droping the datasource Binding Navigator is automatically created Senario: When clicking the "BindingNavigatorAddNewItem" (the one with +) the bound text field to the identity column is incremented by 1. Qustions: Q1 - Is there a row added after to the underlying datatable after the click? Is the row added to the datatable only when you press the save button? Q2 - Where is the code that increments this value? Q3 - How to control the process of incrementing the value and showing it on the textbox? For example, I tried to create an event handler for this button but as soon as the code gets to this handler, the increment would have been completed already. I have also tried to use the BindingSource.CancelEdit() but that did not work either. Thanks for your help.