C# Tutorial 13:Show database values in Table or DataGridView

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 81

  • @anantjain2585
    @anantjain2585 5 років тому

    wow mate, this video is the problem solver, ive been searching out the whole lot of forums about datagridview but i have a problem of repeating the rows, i tried and i lost my mind, and after some time i find this video of yours, truly great work and again you are a life saver bro
    very much appreciated
    thanx again

  • @leonlyan8953
    @leonlyan8953 4 роки тому

    your work enlightened me!thanks a lot!

  • @ChaosRevealsOrder
    @ChaosRevealsOrder 6 років тому

    Cool, thx I have been trying to learn this thing for a while now. I Thought I have to add all columns manually, but this method of yours so much easier.

  • @didupati
    @didupati 11 років тому

    nice one:-) I started liking your videos:-) good job...Thanks for your time....pls continue doing..Thank you!

  •  11 років тому

    It is so clear and easy to follow. Thanks for sharing!

  • @pinhastoav6647
    @pinhastoav6647 7 років тому

    There are some changes for different versions of Visual Studio but it was very helpful for me.
    Thank you!

  • @awfominaya
    @awfominaya 10 років тому

    Perfect! That solved my issue completely and almost instantly.

  • @DrCornTato
    @DrCornTato 11 років тому +1

    I am trying to get the first value of the clumn Eid, which is a changeable value, but I can't get it. I tried using the "SELECT * FROM users.infos LIMIT 0,1 ;", but it doesn't work. It always says "Connection must be valid and open". But when I don't write anything about it, it works, which means it isn't the connection. How can I get the value and set a "int id = valueFromTheDatabase"?

  • @hasancakr4127
    @hasancakr4127 7 років тому

    There are DataGridView and tetxBox tools on the C# Form screen. When the value which is entered from SQL to tetxBox has changed, data is displayed on DataGridView screen.
    Barcode Unit Quantity
    0001 Piece 1
    How can we increase the value of quantity adding +1 or more on the exactly same row when we read/input the barcode to the Textbox? (NOTE: It will be without SQL)

  • @hurstonhurst2242
    @hurstonhurst2242 7 років тому

    Thank you for this. You sharing your knowledge is fantastic and I learn a lot from your videos. don't listen to the people who fail to focus on the material... and want to be crybabies... Yeah that was at you Jay53089.

  • @katakunakaido5853
    @katakunakaido5853 7 років тому

    Is it possible to do this when working on a MVC style? I got all my database methods and connectionstring in a class i call DataAccessLayer or DBConnect

  • @KinoDarkvall79
    @KinoDarkvall79 3 роки тому

    Hey I don't know if anybody could help me... the part of the DataTable dbdataset = new DataTable... "DataTable" shows up giving an error saying the type or namespace could not be found.

  • @luigi0654
    @luigi0654 11 років тому

    hey great vid and very easy to follow. I only have a question, when i try to do this to display data from my db in my datagridview and the querry has a 'WHERE' statement it sends an error... do you know what i can do to fix it?

  • @mrwolf2758
    @mrwolf2758 6 років тому

    Thanks for the helpful tutorial but can i display 3 tables in the same datagridview like for an exemple the informations of an employee and the company name he works for as well as for his department ?

  • @kevinkastrowiak
    @kevinkastrowiak 11 років тому

    VIDEO IS GREAT ! ! thank ya for doing such an interesting things..... Could ya do a video for sessions....... thanks .....

  • @tejashasabnis9839
    @tejashasabnis9839 7 років тому +1

    sir , actually I want to display my oracle database table after clicking on say a button "show_table"! but i am unable to do that so can u please help me by sharing a link or direct code?

  • @udaykrishn
    @udaykrishn 8 років тому

    How to fetch the data using two text boxes? Please help me
    i want search the data using textbox1 and textbox2.

  • @tejashwinimurthy8781
    @tejashwinimurthy8781 6 років тому

    I have a doubt for each button shd we write the code for connection to backend??

  • @bohdankalytovskyy
    @bohdankalytovskyy 9 років тому

    I need to read sql script with multiple select statements that will dysplay multiple tables, how can I display multiple tables in datagridview ?

    •  9 років тому

      bohdan kalytovskyy Try to use different query using JOIN or something else :)

  • @elainearevalo-alejar9360
    @elainearevalo-alejar9360 9 років тому +2

    unable to connect any of the specified mysql host :( ?

    • @DanielRodrigues-rb8qy
      @DanielRodrigues-rb8qy 9 років тому

      i have the same problem.

    •  9 років тому

      Elaine Arevalo Well, I had no problems :) BUt.. Probably needs to create own class or lib for easier access of database and data. I think I'll be trying to make one for my self. If anyone will need - contact me :)

  • @govalle3
    @govalle3 7 років тому

    how do you do for the table has the slide button. When i press the button the table gets more bigger

  • @conventionalischeating
    @conventionalischeating 7 років тому

    Which directives and references do we need to add?

  • @raymondmikalsen7185
    @raymondmikalsen7185 11 років тому

    Is there a tutorial showing how to use one to many mysql setup, lets say one person with several pictures , and the picture paths stored in db.

  • @zakiraimanazakaria
    @zakiraimanazakaria 9 років тому +2

    Hi, i'm using sqlite and create the DataGrid in WPF. However I didn't found the "BindingSource" and also "DataSource". Could you help me whether there is another way to use. Thank You.

  • @AproxianBG
    @AproxianBG 6 років тому

    great work man❤️

  • @CrAzY799999
    @CrAzY799999 8 років тому

    what is the declared value for your MySQLDataAdapter sda?

  • @ratulvlogs99
    @ratulvlogs99 7 років тому

    Thanks for the helpful tutorial

  • @mazkaibil9108
    @mazkaibil9108 8 років тому

    Hello i am having problem with datagrid view not allowing sql to insert date defaulted in sql table and SUSER_SNAME. Can you please add a tutorial to explain how to?

  • @youtuber-xo6fl
    @youtuber-xo6fl 6 років тому

    Thanks. I got it to work on sql sever.

  • @hasancakr4127
    @hasancakr4127 7 років тому

    Thank you sir, I love so much...

  • @usamaahmed6262
    @usamaahmed6262 6 років тому

    hi i am working on my assignment in C# i am a student of software engineering please help me
    i just want to know that (i have two data grid views in a form in first grid view am fetching data from database and i select some data from it and show that data in second grid view and its working but now am stuck in how to save that 2nd grid views data in SQL database) please help me??any one
    can share a link of video which will be helpful.

  • @ardaputra9378
    @ardaputra9378 9 років тому

    very good tutorial (y)
    but i want to ask..
    how to add RadioButton in dataGridView?
    thank you

  • @khateejahlatif9294
    @khateejahlatif9294 8 років тому

    sir, please tell me how i can show different names in dataGridVies for the same selected Column
    plz reply
    thank you..

  • @thisisgoodify
    @thisisgoodify 11 років тому

    You should start a blog so that others can get the code and read what u explain in your videos

  • @rztutul8824
    @rztutul8824 7 років тому

    just awesome...Thank you

  • @Jay53089
    @Jay53089 10 років тому +20

    Please don't move your cursor around so much during your demo.. it's quite annoying

    • @MartinEden-ps6ld
      @MartinEden-ps6ld 7 років тому

      да нет. Я вот русский и мне так видосик понятней

    • @Dimon12321
      @Dimon12321 6 років тому +1

      Someone likes it, someone not. I can tolerate any video that helps me with my course work, but this one doesn't annoy me at all. Саша Безгин says the video is more understandable this way.

  • @demispap8552
    @demispap8552 8 років тому

    Nice work!

  • @goalexboxer
    @goalexboxer 11 років тому

    Thank you, it is so easy

  • @yeldoskadyrkul3583
    @yeldoskadyrkul3583 8 років тому

    how to realize that method with a stored procedure, data table and data reader?

  • @muhammadhambalie8104
    @muhammadhambalie8104 9 років тому +1

    Table load when click button ?
    but can we make if table auto load when form open ?

    • @khaledsale7
      @khaledsale7 9 років тому +1

      +M Hambalie invoke it in the constructor

    • @kimlapitan3794
      @kimlapitan3794 9 років тому

      +khaled saleh could you show me the code that automatically load the values??

    • @khaledsale7
      @khaledsale7 9 років тому +1

      +kim lapitan its the same as the method fillTable which contain the query select * from tableName
      and just invoke it in the constructor

  • @nonamezz20
    @nonamezz20 9 років тому

    Could you create a tutorial how to store data from MySql Database to an arraylist?

  • @silentwra1th110
    @silentwra1th110 9 років тому

    can make videos about how to delete data record in DataGridView

  • @uzeirdalip9499
    @uzeirdalip9499 7 років тому

    thank you, that worked for me :)

  • @DrCornTato
    @DrCornTato 11 років тому

    What if I only want the first value in the column Eid, but I don't know the current Value of that one?

  • @cliffcabz429
    @cliffcabz429 10 років тому +1

    thank you sir so much!

  • @RichardTonata
    @RichardTonata 11 років тому

    How do i display data on a data grid from Multiple Tables.. I have Customer Table and People Table..

  • @mateusandreatta3233
    @mateusandreatta3233 6 років тому

    you rock! valeu brother! jamal ama vc

  • @khateejahlatif9294
    @khateejahlatif9294 8 років тому

    very helpfull it is...

  • @xmsnmx
    @xmsnmx 11 років тому

    sir, thank you . help me alot

  • @auraarzadun9127
    @auraarzadun9127 8 років тому

    Can you post the whole source code of the tutorial regarding load data into datagridview this tutorial of yours.

  • @AleksandarDjurdjevic47
    @AleksandarDjurdjevic47 11 років тому

    How to use this to show database from SQLite?
    SQLiteDataAdapter sda = new SQLiteDataAdapter();
    sda.SelectCommand = sqlite_cmd;
    DataTable dbdataset = new DataTable();
    sda.Fill(dbdataset);
    BindingSource bSource = new BindingSource();
    bSource.DataSource = dbdataset;
    dataGridView1.DataSource = bSource;
    sda.Update(dbdataset);
    Fill:SelectCommand.Connection property has not been initialized

  • @glennteo4871
    @glennteo4871 9 років тому

    Great! Thank you

  • @AleksandarDjurdjevic47
    @AleksandarDjurdjevic47 11 років тому

    Fill:SelectCommand.Connection property has not been initialized. ???

  • @markomolnar9032
    @markomolnar9032 8 років тому

    good job

  • @AbdulMajid-eu9gl
    @AbdulMajid-eu9gl 8 років тому

    HOW TO SHOW data in GRID VIEW AUTOMATICALLY IN START OF SOFTWARE would pleases upport me

  • @ubaidmirza2120
    @ubaidmirza2120 5 років тому

    exceptional handling error in my code plzzz tell me

  • @AnelEzio
    @AnelEzio 11 років тому

    Oh my god, Thank you very much,bro.

  • @milanvasic1116
    @milanvasic1116 8 років тому

    How i can do this with Oracle database?

  • @muiepsd279
    @muiepsd279 8 років тому

    thanks

  • @rasheedmalik6594
    @rasheedmalik6594 4 роки тому

    u forgot to mention link for the code u showed in video

  • @TheSk8diego
    @TheSk8diego 11 років тому

    Ty

  • @sambath7057
    @sambath7057 11 років тому

    How about 2 combobox ?

  • @mariam12300
    @mariam12300 6 років тому

    Could you pls post your code?

  • @ziv156
    @ziv156 11 років тому

    download please?

  • @10000years
    @10000years 11 років тому

    when i type DataTable it come out as error

  • @JinzouArt
    @JinzouArt 8 років тому

    you rock!

  • @leluong8743
    @leluong8743 6 років тому +1

    lol dude, you don't explain anything. You was just saying what code you wrote so it is kinda useless

  • @omerkhan8972
    @omerkhan8972 6 років тому

    Thanks My Nigga

  • @fleezfreeg
    @fleezfreeg 5 років тому

    I don't know if the video is good because I get nauseous watching you move the mouse around. STOP!

  • @wasabikimchi7891
    @wasabikimchi7891 11 років тому

    Fucking hell, thank you!

  • @haijunluo4464
    @haijunluo4464 9 років тому

    thank you sir so much!