Help(windows form)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Abhinav Sood
    New Member
    • Dec 2011
    • 1

    Help(windows form)

    new in this field ...will be simple nd compact :

    1 datagridview
    6 buttons(new,sav e,cancel,edit,d elete,update)
    5 text boxes(all enabled = false) , 1 combo box(all enabled = false)

    on the click of new all textboxes and combo box are enabled.
    fill the data
    click on save ( saved in gridview textboxes are enabled=false and cleared)
    in gridview click on row,the data in row is entered in respective textboxes.
    click on edit u can edit it.
    update it same row is updated and save it a new row is added.

    Question is : i want to remove Update button and on save button i want to do coding for update and save ( both together) . .can u help me ??
  • nirgunpratik
    New Member
    • Dec 2011
    • 4

    #2
    can you explain your problem in more better way!

    Comment

    • adriancs
      New Member
      • Apr 2011
      • 122

      #3
      to nirgunpratik:

      If I understood correctly, his problem is:
      Code:
      i want to remove Update button and on save button
      to Abhinav Sood:

      You may use this to remove or display the button:
      Code:
      private void RemoveUpdateSaveButton()
      {
          button_Save.Visible = false;
          button_Update.Visible = false;
      }
      
      private void DisplayUpdateSaveButton()
      {
          button_Save.Visible = true;
          button_Update.Visible = true;
      }

      Comment

      Working...