Database values in textbox if select Combobox C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024
  • Need Help Or Need code?
    Feel Free To Contact Us Here
    www.noblecomput...
    using this tutorial you can easily understand that
    C# Database values in textbox if select Combobox,
    How to Link Combobox with Database values,how to display combobox value in textbox in c#,how to get selected value from combobox in c#,how to populate textbox based on combobox selection in c#,how to retrieve data from database in combobox c#

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

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

    Hello. I have one question. What if I want to display in combobox two values? For example, I have in database firstname and lastname (seperate). Can you help me with this? :) Thanks a lot for your work.

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

    Thank Mr. Andipara,
    This Tutorial rescued my lil dilemma...
    Kind regards

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

    mistake was , i was using companyname, insetad of * in the quiary
    can you write a code on how to make the same combobox to auto complete?
    your videos are the BEST among others on the internet
    Thanks

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

    Thanks A Lot Sir May You Live Long And Happy

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

    Hi , can i add data into datagrid view and then save this data into Ms access database ? Thanks .

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

    Thanks a lot! You saved me a lot of headaches!

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

    Hi Amit, I did the coding as per your instructions, and I succeeded to create this program but there is a problem: my data in table in sql data base is in Urdu, which is successfully displaying in the combo box, but when I change or select any other text from that combo box then my text boxes (city, country, Id) are not getting any data !!!! (they remain blank) after a lot of trying now I have added some data in the table in English as well Urdu then checked again my program, now it is proper working for English text but not on Urdu text. Can you help me in this regard?

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

    Hi can u help me.. I have a combobox and a checkedlist box. What i want to happen is once i choose one element in combobox, correspoding data will appear on the checkedlist box for me to check also.. I dont know how to do it. Wld u mind helping me.pls

  • @sarang9318
    @sarang9318 9 หลายเดือนก่อน

    Can you please tell me how to code for radio buttons like this?

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

    thank you.it is helped to my final year project.

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

    You shouldn't use a query that looks for a name because there will come a time when you'll have two people with the same name and your query would show the result of the first row it finds with that name. Use the id instead since it's unique.

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

      +Johnny Mac yes i know this is for learning purpose you can use id..

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

    Great tutorial! Was able to make a nice data entry program with it!

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

    Whenever I select any item from combo box, corresponding values are not shown in text boxes but when I select another value from combo box, the previous values are displayed. Please help! I have done the exact same thing. Also, when I double click on combo box, studio creates a function private void pickname_SelectionChanged(object sender, SelectionChangedEventArgs e)
    I changed it to function you have but still same thing is happening!

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

    This really helped! Thank you sir!

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

    Man I love you! you gave me Idea thanks a lot! you're a life saver!

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

    hi , thanks a lot your helpful lesson.I did and It works but I need to know one more thing about it that how we can do that if we have more combobox selections.I mean that a textbox will show the data after we choose two different combobox elements .I applied below code but it doesn't work.please help me about this problem.
    cmd.CommandText = "SELECT * FROM table1 WHERE name = '" + comboBox2.Text + "' and surname ='" + comboBox3.Text + "
    please help me on Access database .thanks

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

    2019 And Still Useful, Thanks a lot !

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

    really such a great work for beginners...Thanks :)

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

    sir i make two combobox one is load value form company name and when i select it 2nd will load only that company products in that in c# with access database kindly resolve my problem

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

    what is the function of dr?
    why won't work on me

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

    Sir, How do i display the database values in datagridview on selected combobox item. Please help

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

    Helpful Video... Thank You Sir..

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

    Thank you so much sir well done 👍

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

    thank u very much really helpful for my project

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

    How we can do this using SQL linq

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

    you solved my problem bro thanks

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

    thank you so much for the combobox value retreival coding, really helpful

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

    thanks bro, helpful video

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

    Arigatou-gozaimasu🕴️

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

    Thanks Sir Amit

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

    THANKS BROOOOOOOOO!...😘😘😘😘😘😘😘😘

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

    What if i have two combobox to check, how do i do that, can yu help please(just retrieve data from db to textbox)

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

      +Newb Tech hello thanks for watching my video, if you have two combobox then you have to write query and after && you have to pass second combobox value.

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

      Sir, i still have doubts, if i can get your email address i can mail you with my doubts.or my email is : neerajc10n3@gmail.com

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

    Man
    I got everything working, but when I select the item from the combobox, i get an error saying
    Column 'companyname' does not belong to table .

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

      +MicrosiM diysmps check your table column name there is different column name in table means companyname column not available in your table.

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

    Thanks dude (life saver)

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

    good job

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

    thanks a lot

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

    Nice job

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

    thanks

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

    Super!!!!!

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

    Thanks

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

    want to give you a project. will pay you

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

    Thanks!!!!

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

    👍👍👍👍

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

    great :)

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

    I want this in jsp

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

      +keerthi naidu hello sorry, but i am not working in jsp.

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

      Amit Andipara do you know this in ajax

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

    Arigatou-gozaimasu🕴️

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

    Thanks

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

    Arigatou-gozaimasu🕴️