Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Drag-And-Drop Binding - Simple Question

Drag-And-Drop Binding - Simple Question

Scheduled Pinned Locked Moved Database
databasetutorialquestionsql-serverwpf
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ekareem
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups