• Tuesday , 2 June 2020

C# Tutorial 7: Edit/Update a data from Database with button

Code Canyon



How to update/edit data using Visual C# Update the data in a database C# edit data in mysql database Visual C# Update a MySQL database field data with C# …

Original source

3d Ocean

Related Posts

22 Comments

  1. uzeir dalip
    September 30, 2017 at 19:06

    thanks mate – 4 years later and this video is still helping people

  2. Aamir Karim
    September 30, 2017 at 19:06

    Suppose I left the last name textbox blank. Then what will be new value in database? The last value or surname will be updated to blank ?

  3. Kaz Tee
    September 30, 2017 at 19:06

    can someone please help with this sql i want the user to update his profile. i create a profile page now i cant get the sql correct for the upadte button. i tried
    update user (table)
    set firstname,lastname,address,email,telephone (fields in my table)
    where 'email' (email it uses to update that particular user account details

  4. dolev ben
    September 30, 2017 at 19:06

    stop moving your f mouse

  5. K i m Ü C h i i i
    September 30, 2017 at 19:06

    Thanks

  6. SHIVRAM SINGH
    September 30, 2017 at 19:06

    i make a Windows form. after debug and save form, i make a change in form but change not show in form when debug. why?

  7. Mrunal Ahirrao
    September 30, 2017 at 19:06

    Why used While loop(empty)?

  8. Jun Lee Martel
    September 30, 2017 at 19:06

    can you also have tutorial on How To Search Values From MySQL Database And Set It Into TextBox?

  9. ahmed magdy
    September 30, 2017 at 19:06

    dude u taught me a lot of stuff from your videos thanks man

  10. kim lapitan
    September 30, 2017 at 19:06

    could someone teach me how to update from the data grind not from the text box

  11. Balthier Sky
    September 30, 2017 at 19:06

    why there is no error when
    I did not put any number in EId.txt but the messagebox show is still update 

    I want to incounter it in error 
    edi.txt
    username.txt
    password.txt
    are missing please insert

  12. Vikal C
    September 30, 2017 at 19:06

    thank you..nice video. easy to learn also.

  13. Viktor Strate
    September 30, 2017 at 19:06

    Anyone know how to add horizontal lines in designmode (like in HTML <hr />)

  14. Simon Johansen
    September 30, 2017 at 19:06

    Great tutorials!
    I need some help, in the databse, my first column (the primary key) I have a name, so it's set to VARCHAR(45) and the rest of my columns are numbers, wich is  also set to VARCHAR(45).
    When i translate the data from my c# to MySQL, i Reads:
    "System.Windows.Forms.TextBox, Text: 58.8"
    This is what is says in the columns, insted of just 58.8, it says: "System.Windows.Forms.TextBox, Text:"   in front of it.
    Why is that?

  15. Boris Bahi
    September 30, 2017 at 19:06

    nothing esle to say . all is into this video .
    think you

  16. Khalil
    September 30, 2017 at 19:06

    even if u choose eld = 1000 they will show you that the data r changed !!

  17. fokziiie
    September 30, 2017 at 19:06

    I get : data type mismatch in critieria expresson. Any tips? Don't understand the error, when it works fine for adding (saving) users.

  18. eXtrem3_b0y
    September 30, 2017 at 19:06

    Very useful information! Thank you for your effort and hard work!
    1 question: What if I want to update just 1 field from DB, for example only the First Name and leave everything the same ?

  19. harrun prasadh
    September 30, 2017 at 19:06

    How to connect Database ?

  20. Yanky Kalifornia
    September 30, 2017 at 19:06

    thank for the video

  21. Fahrettin Perçin
    September 30, 2017 at 19:06

    This kind of tables contain a column that is marked as "Primary Key". Primary Key means that same data cannot repeat and null data cannot be inserted. In this table, I think "Eid" is primary key. Therefore, it is logical to depend to this column. However, if the column you use is not Primary Key or Unique Key, then you must add "AND tablename = ' " + tablenameValue + " ' " after "this.Eid_txt.Text +" code.

  22. Hayd Gately
    September 30, 2017 at 19:06

    Any idea how instead of not just depending on if it's the same eid but on another column as well at the same time?

Leave A Comment

You must be logged in to post a comment.