MySQL database WinForms CRUD Demo. (CREATE,READ,SELECT,UPDATE,DELETE) | C#

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Download Source Code: mahmar.gumroad...
    C# (Csharp) Tutorial for beginners - How to Edit, Update, Delete DataGridview in C# windows form? how to make a CRUD example using MySQL database with ODBC connection in C# Windows Form programming languages? Today I will show you how to make simple applications using C# and MySQL Database.
    SUBSCRIBE MY CHANNEL FOR MORE TUTORIALS
    / @csharpmoderndesign
    👩‍💻 I Offer Software Development Gigs
    Upwork: www.upwork.com...
    Fiverr: www.fiverr.com...
    ____________________________________________
    Thanks for Watching Friends...
    Like, Comment, Share and Subscribe for more videos... :)
    ____________________________________________

Комментарии • 95

  • @zorojuro5132
    @zorojuro5132 2 года назад +3

    what a wonderful code.. that is the best cleaner code with the class.. thanks a lot for this tutorial.. wish you always success broo.. In Syaah Allah success

  • @guipereira14
    @guipereira14 2 года назад +2

    Thank you so much i need this for my professional aptitude test. helped me a lot

    • @Redstrawberry0621
      @Redstrawberry0621 2 года назад +1

      Can you please help me, I having this error after inserting a data. "Column count doesn't Match at row 1". Thank you

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      Great to hear!

  • @sathys6839
    @sathys6839 3 года назад +5

    Thanks a lot, you saved my life !!

  • @osimport9274
    @osimport9274 2 года назад +10

    It would feel better if the music was replaced by your narration.

  • @frankalvarez7513
    @frankalvarez7513 Год назад +1

    This is awesome! TY so much for putting in the time!

  • @madelynclineily
    @madelynclineily 2 года назад

    this music goes crazy ty for the choice!

  • @GLCLearningCenter
    @GLCLearningCenter 6 месяцев назад

    Thank You Master

  • @sasinduavishka8924
    @sasinduavishka8924 2 года назад

    Perfect video. Everything is very clear

  • @the-tea-collector
    @the-tea-collector Год назад

    Thank you! I'm trying to work with C# again and this helped me :)

  • @2agroup_gr
    @2agroup_gr 2 года назад +5

    This is the greatest Crud tutorial I found that also works! Could you help me and explain how/why e.ColumnIndex is 0 for edit and 1 for delete? Thanks in advance.

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад +1

      Thanks. 0 and 1 is column index of datagridview when user click on this column then accordingly operation is performed.

  • @lwe2473
    @lwe2473 Год назад

    Great tutorial, thank you

  • @islamraouf1856
    @islamraouf1856 3 года назад +1

    So interesting and valuable, thanks...

  • @rajiconsolutions
    @rajiconsolutions 2 года назад

    Very good tutorial with class module.

  • @edvinparmeza1298
    @edvinparmeza1298 Год назад +1

    When I try to add a new student, it shows the error:
    Student not inserted.
    Column "Name" cannot be null

    • @Jeffrey-uw8un
      @Jeffrey-uw8un Год назад

      does the column of your sql and the variable you want to define matches?

  • @AlexAlex-s2b
    @AlexAlex-s2b 11 месяцев назад

    Hi bro. Please advice how to manage the connection to MySQL if ssh needed.

  • @sasinduavishka8924
    @sasinduavishka8924 2 года назад

    Thank you very much.

  • @_PhamBachMinhTri
    @_PhamBachMinhTri Год назад

    This vid helped me a lot. By the way, can i have the music name ?

  • @momo23000ful
    @momo23000ful 2 года назад

    Nice, thank u

  • @abdulqahar9852
    @abdulqahar9852 Год назад

    how to insert and update data in just one button(save) in C# // I need some help

  • @loal
    @loal 3 года назад +1

    Have a problem, when I use the "Edit buttom", and after that I use the "New buttom" still having the text about editing the student

    • @kumaresha3348
      @kumaresha3348 3 года назад

      I have the same issue. Please help.

  • @croanna_
    @croanna_ 2 года назад

    Can you explain why do we have to use _parent? Thanks

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      This is because I called Parent Form from Child Form for data updation in datagridview.

  • @eugenegarces4017
    @eugenegarces4017 2 года назад +2

    hi sir, im having problems on 36:11 the tbl in adp.Fill(tbl); is having an error

    • @omarmahmood4209
      @omarmahmood4209 2 года назад

      post the error as well

    • @eugenegarces4017
      @eugenegarces4017 2 года назад

      @@omarmahmood4209 'System.Windows.Forms.DataGridTableStyle' to 'System.Data.DataSet' Hotel Booking Information C:\Users\User\source
      epos\Hotel Booking Information\DbCustomer.cs 100 Active
      Severity Code Description Project File Line Suppression State
      Error CS0029 Cannot implicitly convert type 'System.Data.DataTable' to 'System.Windows.Forms.DataGridTableStyle' Hotel Booking Information C:\Users\User\source
      epos\Hotel Booking Information\DbCustomer.cs 99 Active

    • @Llamamoss
      @Llamamoss 2 года назад

      @@omarmahmood4209 i'm having the same error i believe he is refering to it not being mentioned in the current context (code:CS0103)

    • @rellaxshala4189
      @rellaxshala4189 2 года назад

      I have problems too on that part

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      Download Source Code: mahmar.gumroad.com/l/mysqlcrudoperation

  • @aymenjarray4726
    @aymenjarray4726 3 года назад +2

    Problème en adp. Fill(tbl)
    Please help me please 🙏🙏🙏

  • @Redstrawberry0621
    @Redstrawberry0621 2 года назад +1

    Thank you for this tutorial🤩

    • @Redstrawberry0621
      @Redstrawberry0621 2 года назад +1

      I am having now an error, " FormStudent Clear() is inaccessible due to its protection level. Plsss help me

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад +1

      You’re welcome 😊

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад +1

      Download Source Code: mahmar.gumroad.com/l/mysqlcrudoperation

  • @BOSS-uh1hq
    @BOSS-uh1hq Год назад

    Cảm ơn. MODERN DESIGN

  • @sherwintayo1286
    @sherwintayo1286 11 месяцев назад

    can you create this kind of crud but in sql server

  • @yasermahfouz6263
    @yasermahfouz6263 3 года назад

    crystal cant print and give me that message method not found void system run time inter op services marshal structure to pt

  • @kayathri.v1399
    @kayathri.v1399 Год назад +1

    Pls share the source code

  • @amnah8532
    @amnah8532 3 года назад +1

    getting an error at 35:35 the DataTable u added, I don't get it in my list

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  3 года назад +1

      DataTable is a class within the System.Data namespace. Try to change your using to just System.Data
      using System.Data;

    • @michaelvolchok4094
      @michaelvolchok4094 3 года назад

      You can add to string sql "...; SSL Mode=None" that worked for me

    • @Redstrawberry0621
      @Redstrawberry0621 2 года назад

      Why I am getting fatal error during the command execution after inserting data?

  • @zorojuro5132
    @zorojuro5132 2 года назад

    can you help me please ?
    i got error in edit button.. i can't find form id and the other in edit button

  • @sarimmuzaffar6783
    @sarimmuzaffar6783 3 года назад

    Hi how r u?
    I really need your help.
    I am stuck in the data inserting part of my project.

  • @Shicomogs
    @Shicomogs Год назад

    done until 12:50

  • @bkprid3
    @bkprid3 2 года назад

    Try to click the header of Edit, you will see an error

    • @daoyaj08
      @daoyaj08 2 года назад

      I noticed that too. I found that if(e.ColumnIndex == 0 || e.RowIndex == -1) solve the issue.

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      @Dee Kha Thanks

  • @sina-zr
    @sina-zr 2 года назад

    It Doesn't Work
    You should have explained about your codes
    and there is no source code?

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      Download Source Code: mahmar.gumroad.com/l/mysqlcrudoperation

  • @croanna_
    @croanna_ 2 года назад

    What means Cells[2] at 50:28?

    • @croanna_
      @croanna_ 2 года назад

      Other than that - great tutorial, everything works :)

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      Thanks

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  2 года назад

      Basically, Cell[2] value is Primary Key. I used this Key to update and delete record from database.

  • @rinchara1562
    @rinchara1562 3 года назад

    Hi I need a help.

  • @gaurav.69420
    @gaurav.69420 2 года назад

    30:34 Error on con.Close();

  • @muananathanaelbenandersonr4803

    What is Reg?

  • @SatyaPrakash-xs6ps
    @SatyaPrakash-xs6ps 3 года назад

    Facing problems with dbstudent code

    • @fahmiriza6398
      @fahmiriza6398 3 года назад

      you can add: using MySql.Data.MySqlClient

    • @amnah8532
      @amnah8532 3 года назад

      @@fahmiriza6398 still having error

  • @nextsgat7065
    @nextsgat7065 3 года назад

    New you would come back there 58:18

  • @aymenjarray4726
    @aymenjarray4726 3 года назад

    muhammed help me please

  • @danicatalon6310
    @danicatalon6310 Год назад +1

    Meron ako neto whole file

  • @McCallumClips
    @McCallumClips 3 года назад +1

    No narration? No thanks.

  • @fabianperez8729
    @fabianperez8729 2 года назад

    Alguien en español? Que me explique please

  • @MatteiruDesu_
    @MatteiruDesu_ 4 месяца назад

    why id cells is [2] bro?

  • @delgajohn3089
    @delgajohn3089 Год назад

    hi dm me please i purchased your project

    • @ahshamuyarira8357
      @ahshamuyarira8357 Год назад

      hi

    • @CSHARPMODERNDESIGN
      @CSHARPMODERNDESIGN  Год назад

      Thanks

    • @3dsbros64
      @3dsbros64 Год назад

      My advice is that you didn't spend your money on these type of projects. They are relatively easy and if your intent is to share your client application, your database is likely to be compromised using this method.

    • @arwamukhi255
      @arwamukhi255 Год назад

      hi, pleaseeeeeeeee share the code. i am in ire need of it