Insert,Delete and Update data in database from datagridview in c sharp

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 119

  • @hamidrezaashkiyan
    @hamidrezaashkiyan 6 ปีที่แล้ว +2

    I was trying to do this for 3 weeks and finally i did it. I am so HAPPY. THANKS.

  • @mmranjani8173
    @mmranjani8173 3 ปีที่แล้ว +1

    I am from Sri Lanka. Your videos are very easy to understand. They are very helpful me while doing my assignments. Thank you so much.

  • @scherka
    @scherka 2 ปีที่แล้ว

    MAAAAN you're awesome! From Russia with respect

  • @hareesonline
    @hareesonline 9 ปีที่แล้ว +1

    Dear Vetrivel it works fine..
    It is really agood piece of work of you. Many thanks.
    this makes the things easier for a programmer to play with SQL

  • @muhammadilyasmaz7242
    @muhammadilyasmaz7242 3 ปีที่แล้ว

    In Really Dear Sir Ur methodology is so best thanks
    I am From Afghanistan

  • @ildephonsendacyayisenga
    @ildephonsendacyayisenga 2 ปีที่แล้ว

    I am from rwanda.your video is very helpful

  • @ВераУрекина
    @ВераУрекина 3 ปีที่แล้ว

    Thanks a lot. Your video saved me. Simple and efficient database update via datagridview.

  • @nidhindavid634
    @nidhindavid634 9 ปีที่แล้ว

    Worked perfectly with MySQL server. Thanks for your kindness

  • @genogurirab8061
    @genogurirab8061 3 ปีที่แล้ว

    It is well explained ,eazy to understand video ,I love it alot and it was very helpfull.

  • @hungcotcvn
    @hungcotcvn 7 ปีที่แล้ว

    your code is very easy to get it! Thanks! I am a big fan of your work!

  • @malcs3758
    @malcs3758 9 ปีที่แล้ว

    I find the code tremendous value. Makes me remember the amber screen days and other techniques.

  • @rosinavega6615
    @rosinavega6615 8 ปีที่แล้ว

    muchas gracias. he aprendido mucho con el material que has subido

  • @RahulKumarRajendran
    @RahulKumarRajendran 9 ปีที่แล้ว +1

    thanks dear as a beginner this video helped me a lot.

  • @MEETEJAS
    @MEETEJAS 2 ปีที่แล้ว +1

    This getting error
    object reference not set
    (DT)

  • @brigoose7945
    @brigoose7945 4 ปีที่แล้ว

    from 4:50 I cant do insert query or anything,...help

  • @harshvaid8860
    @harshvaid8860 10 ปีที่แล้ว

    thank you....
    i wants more videos like these....

  • @yamyam2699
    @yamyam2699 9 ปีที่แล้ว

    thanks, it really help us for our thesis project :))

  • @EnsidiaGaming
    @EnsidiaGaming 10 ปีที่แล้ว +6

    where is the INSERT part mate?

  • @barmam4987
    @barmam4987 5 ปีที่แล้ว

    I can't find this table. Could you help me? I use Windows 10 and Visual Studio 2017 and 2019

  • @holebasupanishetti3762
    @holebasupanishetti3762 4 ปีที่แล้ว

    I am Getting Error "System.InvalidOperationException : 'Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information'

  • @AmyLe01
    @AmyLe01 9 ปีที่แล้ว +1

    How do we create the parameter (i.e Select Cus code, Cus Name....) for SqlDataAdapter in Visual Studio 2013? When clicking new query from the table in Server Explorer, there is no option to add table

  • @pndatasystem
    @pndatasystem 7 ปีที่แล้ว

    This type of program not working in Visual Studio 2015 with dynamic SQL. If Select statement have where then it is not working. If you have solution then please provide.

  • @hassanhas_1223
    @hassanhas_1223 2 ปีที่แล้ว

    Hi!
    Please how can I get database from Google sheets?
    I want to show it on gridview..

  • @CarlosAOrtizG
    @CarlosAOrtizG 9 ปีที่แล้ว

    +Vetrivel do U think with your video we can learn how to program?

  • @massaridx
    @massaridx 5 ปีที่แล้ว +1

    You can do this query insted of yours (Select * from [table name])

  • @hurikhan
    @hurikhan 9 ปีที่แล้ว +10

    What kind of language is that???

    • @VetrivelD
      @VetrivelD  9 ปีที่แล้ว +2

      Uros Gorensek Thanks Brother.. Further Any Doubts then feel free to ask me.. if you like our tutorials then kindly share your friends..

    • @nikhillll
      @nikhillll 8 ปีที่แล้ว +3

      +Uros Gorensek Hey do not see the language that he is speaking. Learn the stuff that he is teaching you free of cost !!

    • @aadnan7450
      @aadnan7450 8 ปีที่แล้ว

      if u want to learn in good language than join the institutes

    • @sliceofdeathothers114
      @sliceofdeathothers114 7 ปีที่แล้ว

      c#

    • @abielst7581
      @abielst7581 7 ปีที่แล้ว

      C# bro

  • @badrunnaharkhan846
    @badrunnaharkhan846 9 ปีที่แล้ว

    Sir if I want to put a delete button and i want to delete using that button then how can we do that ?

  • @AlexKayzProductions
    @AlexKayzProductions 8 ปีที่แล้ว

    Great video ! Thanks for help !

  • @karumbaevtv3929
    @karumbaevtv3929 ปีที่แล้ว +1

    Харош чел

  • @dattabhabal421
    @dattabhabal421 7 ปีที่แล้ว

    in gridview it not showing me enable adding,deleting,editing why i so can u tell me

  • @LiterallyJesusChrist
    @LiterallyJesusChrist 10 ปีที่แล้ว

    I followed same instructions, but I can not delete any record, my application throws exception: "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information." when I try to "Update" after deleting a row. Is this due some setting in the Database or Table?

    • @OMSoundar
      @OMSoundar 10 ปีที่แล้ว

      hi me too get same error Dynamic SQL generation how to rectify this error anyone share and fix this.... i am using SQL server 2008

  • @manhtuongtran5793
    @manhtuongtran5793 9 ปีที่แล้ว

    It's useful ! Thanks.

  • @talhatariq5530
    @talhatariq5530 3 ปีที่แล้ว

    Tremendous Sir

  • @sophoakhon3539
    @sophoakhon3539 5 ปีที่แล้ว

    i have a problem on
    scb =new SqlCommandBuilder(sda);
    sda.Update(dt);
    so what can i do?

  • @AvalonityTV
    @AvalonityTV 8 ปีที่แล้ว

    Thank you! works perfectly.

    • @kodajoaquin6633
      @kodajoaquin6633 3 ปีที่แล้ว

      I realize it's kinda off topic but does anyone know a good place to watch new movies online ?

    • @callenbyron8111
      @callenbyron8111 3 ปีที่แล้ว

      @Koda Joaquin Try FlixZone. You can find it by googling =)

    • @ephraimcash875
      @ephraimcash875 3 ปีที่แล้ว

      @Callen Byron Yea, been watching on FlixZone for years myself =)

    • @kodajoaquin6633
      @kodajoaquin6633 3 ปีที่แล้ว

      @Callen Byron Thank you, I signed up and it seems like a nice service :D Appreciate it!

    • @callenbyron8111
      @callenbyron8111 3 ปีที่แล้ว

      @Koda Joaquin no problem xD

  • @shehbaz1994
    @shehbaz1994 7 ปีที่แล้ว

    hello sir there is a problem when in i type the same code in the visual studio 215 i got an error during updating the gridview data how to handle this
    the error is
    Dynamic sql generation for the update command is not supported against a selectcommand that does not return any key column information

    • @pndatasystem
      @pndatasystem 7 ปีที่แล้ว

      Hello Muhammad i have same problem this program doesn't work in Visual Studio 2015. If you found any solution then please let me know.

    • @idlevandal69
      @idlevandal69 6 ปีที่แล้ว

      It means when you did your SELECT statement in your sqlAdapter you didn't include the Primary Key from the table you were querying

  • @Priyanka59ify
    @Priyanka59ify 10 ปีที่แล้ว

    thank u show much it helped me a lot............can u help me to add on delete button to delete the record from datagridview

  • @zhengzhou5849
    @zhengzhou5849 6 ปีที่แล้ว

    In Button1_Click, I do a little adjustment, it works now
    string conString = "Data Source=WIN-3HH0R1TE1AB;Initial Catalog=ExampleSQLDb;Integrated Security=True;Pooling=False";
    SqlConnection con = new SqlConnection(conString);
    con.Open();
    SqlDataAdapter sda = new SqlDataAdapter("select * from Table1", con);
    SqlCommandBuilder scb = new SqlCommandBuilder(sda);
    DataTable dt = (DataTable)dataGridView1.DataSource;
    sda.Update(dt);

  • @minhhainguyen1153
    @minhhainguyen1153 10 ปีที่แล้ว

    Can you helpme, insret buton, in form iclude datagridview and textbox (show infomation for each column in datagridview). Thanks

    •  8 ปีที่แล้ว

      +minh hai Nguyen welcome laptrinhvb.net

  • @showieeliezer2951
    @showieeliezer2951 7 ปีที่แล้ว +4

    where's the deleting?

  • @brigoose7945
    @brigoose7945 4 ปีที่แล้ว

    I have no option for new query

  • @waelh6239
    @waelh6239 6 ปีที่แล้ว

    really useful.
    Thanks.

  • @mentalismtrainer
    @mentalismtrainer 8 ปีที่แล้ว

    sir it's not working on my system. error is:{"Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information."}
    i selected table by where condition .
    string sql = "select item,Qty,Price,Total_price,work_status,Bill_No from item_dtls_tab where Bill_No='" + comboBox1.Text + "'";
    da = new SqlDataAdapter(sql, cn);

    • @kris4117
      @kris4117 7 ปีที่แล้ว

      First Work on the example given in the video. Then try your ownpaying attention to the syntax. These videos are for help in understanding.Take your time to patiently work through.

    • @ahtramraheel3908
      @ahtramraheel3908 7 ปีที่แล้ว

      your table doesn't have any primary key. Add a primary key in your table and your error will resolve.

  • @ajaxkm
    @ajaxkm 7 ปีที่แล้ว +1

    I got it working. Thanks a lot. but when I reload my table. I get something like this:
    1 name1
    2 name 2
    30
    It keeps doing that. and doesn't start with 3

  • @isuruaravinda9651
    @isuruaravinda9651 9 ปีที่แล้ว +1

    Thank you bro!!

  • @tyronwilliam9417
    @tyronwilliam9417 8 ปีที่แล้ว

    how can i display messagebox when one of rows is null? i want to make exception for that situation, please help. BTW thiw video saved my project, thank you

  • @pakgeochannel8419
    @pakgeochannel8419 5 ปีที่แล้ว

    visual studio c# mea ContextMenuStrip mea radiobutton mea TopMost ko control karne ka treak kea hai

  • @obaidrehman1
    @obaidrehman1 8 ปีที่แล้ว

    Nice Tutorial can u show me how to delete records....

  • @jameskimuyu1317
    @jameskimuyu1317 7 ปีที่แล้ว

    Very helpful indeed

  • @bhenbarce4501
    @bhenbarce4501 8 ปีที่แล้ว

    can this code work using wpf ?

  • @Vereonis
    @Vereonis 9 ปีที่แล้ว +23

    I have no idea wtf you're saying.

    • @jaworq
      @jaworq 7 ปีที่แล้ว +4

      you dont have to. He shows everything what he is doing. Don't act an idiot.

  • @renzosanantonio5952
    @renzosanantonio5952 7 ปีที่แล้ว

    Thanks a lot 😃😃

  • @moonshine-vg2qt
    @moonshine-vg2qt 9 ปีที่แล้ว

    Hi, thankyou for your tutorial!
    but where's the delete command?

  • @johnfrades
    @johnfrades 8 ปีที่แล้ว

    Thanks for this!

  • @abipatil6641
    @abipatil6641 8 ปีที่แล้ว

    {"Object reference not set to an instance of an object."} getting this problem sir

  • @Wayne_Maganyani
    @Wayne_Maganyani 8 ปีที่แล้ว

    I'm finding it to connect to my database. may anyone please help me

  • @ajithkumar5581
    @ajithkumar5581 3 ปีที่แล้ว

    Sir I tried this process but it doesn't getting updated..reason sir

  • @regismaltais5743
    @regismaltais5743 9 ปีที่แล้ว +3

    It would be nice if you provide a link to your source code

    • @VetrivelD
      @VetrivelD  9 ปีที่แล้ว

      Regis Maltais Thanks Brother.. Further Any Doubts then feel free to ask me.. if you like our tutorials then kindly share your friends..

  • @seidmohammed640
    @seidmohammed640 9 ปีที่แล้ว

    it is very interesting tutorial .please help me if you have any tutorial or source code about plagiarism testing system

  • @hamzaAkB
    @hamzaAkB 9 ปีที่แล้ว

    Sir it's not working all code is ok but don't know why data is not updating in database :/

  • @isaac-9185
    @isaac-9185 2 ปีที่แล้ว

    it seems like the database is not updated

  • @moneymoney5229
    @moneymoney5229 6 ปีที่แล้ว

    how to close the datagridview or how to reset it

  • @arunrejiarunkalloor
    @arunrejiarunkalloor 10 ปีที่แล้ว +1

    Thanks u so much friend.
    :)
    (y)

  • @RoxReview
    @RoxReview 6 ปีที่แล้ว

    Thanks, Good Man!

  • @jashsoft3762
    @jashsoft3762 4 ปีที่แล้ว

    10/10 good one.

  • @bekasbekas3358
    @bekasbekas3358 8 ปีที่แล้ว

    thank you very match

  • @dalviringh371
    @dalviringh371 9 ปีที่แล้ว

    errror on
    sda.update(dt);
    plz help

    • @Dogwithknife
      @Dogwithknife 9 ปีที่แล้ว

      dalvir singh i have the same problem. appears to be null exception. how to fix?

    • @mehedimisson
      @mehedimisson 5 ปีที่แล้ว

      you might have used "Select * from [table_name]"
      use column names like "Select name,age,phone from [table_name]"
      that will do i hope !

  • @-tewahdo1023
    @-tewahdo1023 2 ปีที่แล้ว

    Can you provide a link to your source code

  • @natsume5372
    @natsume5372 4 ปีที่แล้ว

    Where is delete?

  • @kiszatay6149
    @kiszatay6149 4 ปีที่แล้ว

    why am i always getting problems with these

  • @mohamed_adel1
    @mohamed_adel1 6 ปีที่แล้ว

    Thanks

  • @mishellethomson9772
    @mishellethomson9772 9 ปีที่แล้ว

    hi my freínds great work could you please share the code ?

  • @pysedon
    @pysedon 10 ปีที่แล้ว

    thank you

  • @pakgeochannel8419
    @pakgeochannel8419 5 ปีที่แล้ว

    visual studio c# mea ContextMenuStrip mea radiobutton mea TopMost ko control karne ka treak

  • @zureasurchi708
    @zureasurchi708 ปีที่แล้ว

    links video databas ples

  • @ilyastrekalo9449
    @ilyastrekalo9449 6 ปีที่แล้ว

    thx!

  • @mohamadfoudeh2111
    @mohamadfoudeh2111 2 ปีที่แล้ว

    WHERE DELETE ?? THANKS

  • @dalviringh371
    @dalviringh371 9 ปีที่แล้ว

    not working

  • @natorikatsuro1133
    @natorikatsuro1133 7 ปีที่แล้ว

    10/10 bro

  • @RF-gj4wb
    @RF-gj4wb 8 ปีที่แล้ว

    the subs at 0:40 tho...

  • @littlenarwhal3914
    @littlenarwhal3914 6 ปีที่แล้ว

    Dude get your mic sorted out, and speak more loudly and articulate PLEASE!!!

  • @АягозСеитова-х1ъ
    @АягозСеитова-х1ъ 7 ปีที่แล้ว

    can you give kod? plaseeeeee

  • @ichide7
    @ichide7 9 ปีที่แล้ว +6

    why programers never put the f*cking code downloadable or in the description, what they are expecting? +Vetrivel D it's an advise.

    • @VetrivelD
      @VetrivelD  9 ปีที่แล้ว +1

      +ichide7 Thanks for your Feedback. I Will make one blog and i will give that links..
      Please Ask any Doubts i will make video for that..!

    • @hungtran2072
      @hungtran2072 9 ปีที่แล้ว

      +Vetrivel D hi,it just have an update and fetch data,where is Delete command ?

    • @robertanic7799
      @robertanic7799 8 ปีที่แล้ว

      +Vetrivel D Do you have Entity Framework example ? And with 2 or more ways how to bind to grid.

    • @quaxiscorporationforresear5557
      @quaxiscorporationforresear5557 8 ปีที่แล้ว +10

      I hate when people want to learn to do something but are too lazy to type the code themselves. There's barely any code to type. The creator of this video doesn't expect anything. Programmers don't really hold people by the hands and just give you everything. Seriously, you actually learn better when you type code. Any teacher will tell you that.

    • @kirkin2006
      @kirkin2006 8 ปีที่แล้ว +1

      Excelent.

  • @farooqrasheed7145
    @farooqrasheed7145 6 ปีที่แล้ว

    where is insert and delete code ? time waste

  • @hafizsalmanmalik2813
    @hafizsalmanmalik2813 6 ปีที่แล้ว

    wasting of time.

  • @nonamezz20
    @nonamezz20 7 ปีที่แล้ว

    Rubbish

  • @hassanhas_1223
    @hassanhas_1223 2 ปีที่แล้ว

    Hi!
    Please how can I get database from Google sheets?
    I want to show it on gridview..