eidt update mode button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dipalichavan82
    New Member
    • Feb 2008
    • 41

    #1

    eidt update mode button

    i have a form on which i m displaying data in datagridview.on same form i have update ,insert,delete button.when i click on insert or update btn new form opens with controls(textbo x) in which user is giving values.on this 2nd form i have 2 btns -save and cancel.if i click on cancel i will go to 1st form and if i click on save btn -
    record should be inserted in list n displayed in datagridview or record should be updated in list n displayed in dgridview(depen ding on insert or update btn selected).
    i can do coding part. but prob is:

    i want to do inset or update function in 2nd form depending on selection mode of button on 1st form-insert /update

    i m doing windows app in vs2005
    plz help
    thnx in advance
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by dipalichavan82
    i have a form on which i m displaying data in datagridview.on same form i have update ,insert,delete button.when i click on insert or update btn new form opens with controls(textbo x) in which user is giving values.on this 2nd form i have 2 btns -save and cancel.if i click on cancel i will go to 1st form and if i click on save btn -
    record should be inserted in list n displayed in datagridview or record should be updated in list n displayed in dgridview(depen ding on insert or update btn selected).
    i can do coding part. but prob is:

    i want to do inset or update function in 2nd form depending on selection mode of button on 1st form-insert /update

    i m doing windows app in vs2005
    plz help
    thnx in advance
    When you open the form that you are using to Edit, also call a method/property in the Edit form that selects which mode the user chose.

    -Frinny

    Comment

    Working...