VB.NET And SQL - Datagridview Search Data Using Visual Basic .Net [ with source code ]

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Search Data In SQL And Display On DataGridView In VB Net
    Source Code: 1bestcsharp.blo...
    ----------------- Check out my VB.Net Projects! -------------------
    ▶ Inventory Management System - bit.ly/Vbnet_In...
    ▶ Students Information System - bit.ly/2MsvUp7
    ▶ Contacts Management System - bit.ly/2GzxnGQ
    ▶ Hotel Management System - bit.ly/VbnetHot...
    ▶ Real Estate Management System - bit.ly/VBNet_Re...
    ▶ Library Management System - bit.ly/3A7hrXE
    ▶ All My Programming Projects Here - bit.ly/2HrU8hK
    ▶ My Source Code Store Here - bit.ly/2OsC0TU
    ---------------------------------- VB.NET PRODUCTS -----------------------------------
    ▶ Get VB.NET Projects Bundle - bit.ly/VBNetPro...
    ▶ Take VB.Net Course - bit.ly/2wnNiVt
    --------------------------------------------------------------------------------------------------------
    Programming Projects:
    1bestcsharp.blo...
    visit our blog 1bestcsharp.bl...
    instagram: / 1bestcsharpblog
    facebook: / 1bestcsharp
    twitter: / 1bestcsharp_
    subscribe: goo.gl/nRjPKk
    C# And Java Programming Books
    1bestcsharp.blo...
    In This VB.NET Tutorial We Will See How To Search Records From SqlServer Database On Button Click Event
    And Text Changed Event With Microsoft SQL DataBase Using Visual Basic .NET Programming Language.
    subscribe for more tutorials
    VB.NET And SQL Server Database Tutorials:
    Connect SqlServer Database With Vb.net
    • VB.NET And SQL Server ...
    Select And Display Data From SQL Server Database Using Vbnet
    • VB.NET And SQL Server ...
    Insert Data Into SQLServer Database Using VB NET
    • VB.NET And SQL Server ...
    Update Data In Database Using Vbnet
    • VB.NET And SQL Server ...
    Delete Data From SQL Server Database Using Visual Basic .NET
    • VB.NET And SQL Server ...
    Search Values From SQL Server Database And Set It Into TextBox In Visual Basic .NET
    • VB.NET - How To Search...
    Populate ComboBox From SQL Values In VbNet
    • VB.NET - How To Popula...
    SQL Server Records Navigation Using Visual Basic.Net
    • VB.NET And SQL Databas...
    Datagridview Search Data Using VB.Net
    • VB.NET And SQL - Datag...
    Insert Update Delete
    • VB.NET And SQL - How T...
    Login Form With SQL Database
    • VB.NET - How To Create...
    VB NET Using SQL Stored Procedures
    • VB.NET - Using SQL St...
    Insert Image Into SQL DataBase
    Part 1: • VB.Net - Insert Image ...
    Part 2: • VB.Net - Insert Image ...
    Retrieve Image From SQL DataBase In Visual Basic.net
    • VB.Net - How To Retrie...
    Retrieve Images From SQL DataBase Into DataGridView In VB.net
    • VB.Net - Retrieve Imag...

Komentáře • 64

  • @Moses2212
    @Moses2212 Před 5 lety +2

    This is the tutorial that i’ve been looking for couple days, thank you so much

  • @MoeBhelil
    @MoeBhelil Před 5 lety +1

    man, i can't thank you enough, i've been looking for a tut to make it for 4 hours
    your's was the simplest and easiest to understand.
    thank you!

  • @mich.k8242
    @mich.k8242 Před 6 lety +1

    Mine didn't work. It underlined fill and says 'overload resolution failed because no accessible 'fill' accepts this number of arguments'.
    It highlighted adapter.Fill() and said 'An unhanded exception of type 'System.InvalidOperationException' occurred in System.Data.dll. Additional information: The SelectCommand property has not been initialised before calling 'Fill' ''

  • @official_jsem4
    @official_jsem4 Před rokem +1

    thank you very much for this man. It has really helped me here today and am really grateful for that.
    🙏🙏🙏

  • @meowowz
    @meowowz Před 3 lety +1

    An old video but definitely helped me a lot! Thanks!

  • @aquillahdarkova7904
    @aquillahdarkova7904 Před 4 lety +2

    'CONCAT' is not a recognized built-in function name.

  • @danielromero3806
    @danielromero3806 Před 3 lety

    Good morning, could you tell me that I should change to be used with an access database, I really appreciate it

  • @neraazzura6903
    @neraazzura6903 Před 4 lety

    hallo ,
    hello, I'm nera from indonesia.
    I can't understand the code (SELECT * From Users Where CONCAT.)
    can you help me explain again

  • @tejanaiduchintha7288
    @tejanaiduchintha7288 Před 5 lety

    Do I have to make any changes if I am using the sql server authentication other than the Windows authentication plz help

  • @AlisaScarlet
    @AlisaScarlet Před 6 lety +1

    Thank you! it worked for me although it doesn't have narration .. like ! (y)

  • @jinkaiser7645
    @jinkaiser7645 Před 6 lety

    i'ts running but when i'm searching the other data is not disappearing but instead it's multiplying,,
    pls help

  • @nicador100
    @nicador100 Před 3 lety +1

    Thanks very much !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @_yamid
    @_yamid Před rokem +1

    Buen tutorial

  • @jasonpeterson7986
    @jasonpeterson7986 Před rokem +1

    Nice! Thank you!☺

  • @vule562
    @vule562 Před 7 lety

    Can you make a new video how search date range with parameters using Store Procedure.
    Thanks for your great Tutorials It is very easy to follow even if there is no voice

  • @chillspyderz
    @chillspyderz Před 7 lety

    'SELECT * From Users WHERE CONCAT(fname, lname, age) like '%F%' equivalent code for access database coz i'm using access database as back end and not SQL. thanks

  • @Erick-ks5ee
    @Erick-ks5ee Před 4 lety

    Thanks man you are a genius

  • @abdulaahimahamuudabdirahma7796

    Bro can you tell me the meaning of CONTAC in your project.

  • @markchristianrubio4199

    My teacher run my code then put an apostrophe to searchbar, then after it says error (
    he knew what will happen, he did it on purpose) please help me to restrict apostrophes

    • @hahuhuta800
      @hahuhuta800 Před 5 lety

      if (searchbar.txt = ";") {
      Msgbox("Error")
      }

  • @raphsanchez95
    @raphsanchez95 Před 2 lety

    Hi, I'm doing an experiment on a lottery table which contains a "date" (column1) the "wheel" (column 2) and the other 5 columns with numbers, which would be the draws. I can't search for 5 numbers chosen by me in no particular order. For example:
    The numbers to look for are:
    22 34 67 87 90, in the search if there is such an extraction, it finds it only in order or in sequence as I write it, while my goal would be that the 5 numbers can be found even if in different positions, for example 22 not as first extract but second or third, fourth and finally fifth, so for all the others, since the combinations are different and the numbers can come out on different columns. How to do?

  • @tejanaiduchintha7288
    @tejanaiduchintha7288 Před 5 lety

    I am getting an error which is error BC30451: 'connection' is not declared. What should I do Please help

  • @johnnyIIdelatorre
    @johnnyIIdelatorre Před 2 lety

    thanks it works perfectly

  • @TakshvysDad
    @TakshvysDad Před 4 lety +1

    Thanks man. It helps

  • @og_hannarosary
    @og_hannarosary Před 7 lety

    DO you have another one (I mean this one) in Class and Forms? Lang: VB.net

  • @jayraldtajale8121
    @jayraldtajale8121 Před 5 lety +1

    Many thanks bro

  • @nicador100
    @nicador100 Před 3 lety

    Thanks very much !

  • @lloydsantos3537
    @lloydsantos3537 Před 7 lety +3

    'CONCAT' is not a recognized built-in function name. How can i fix this sir?

  • @Ganzoi
    @Ganzoi Před rokem

    what is the CONCAT?

    • @1BestCsharpblog
      @1BestCsharpblog  Před rokem

      "The CONCAT() function adds two or more expressions together" - w3schools

  • @alguzman6437
    @alguzman6437 Před 7 lety

    HELLO WHERE DID YOU GET THAT CONCAT? users is your table name right? then concat is?
    'SELECT * From Users WHERE CONCAT(fname, lname, age) like '%F%'

    • @1BestCsharpblog
      @1BestCsharpblog  Před 7 lety

      "CONCAT" takes 2 variable or more as arguments and concatenates them into a single string

  • @esraaalbdery3567
    @esraaalbdery3567 Před 5 lety +1

    شكراً

  • @a.c6761
    @a.c6761 Před 6 lety

    CONCAT is not recognize in sql server 2008 what should i do??

  • @ryokohonda4619
    @ryokohonda4619 Před 7 lety

    Help, mine still have doesn't run even if there are no errors

    • @ryokohonda4619
      @ryokohonda4619 Před 7 lety +1

      An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
      Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

  • @juliusalbano2439
    @juliusalbano2439 Před 7 lety

    Sir. Can you include also how to save the datagridview into sql...... datagridview does not have any binding source...... It would be a big help to my project as i am new to programming... thanks in advance

    • @atdastunisie
      @atdastunisie Před 7 lety

      Private Sub DataGridView1_CellClick(sender As Object, e As DataGridViewCellEventArgs)
      Dim index As Integer
      index = e.RowIndex
      Dim selectedRow As DataGridViewRow
      selectedRow = DataGridView2.Rows(index)
      Dim ID as Integer = selectedRow.Cells(0).Value.ToString
      Dim fname as String = selectedRow.Cells(1).Value.ToString
      Dim lname As String= selectedRow.Cells(2).Value.ToString
      Dim username as String = selectedRow.Cells(3).Value.ToString
      Dim password as String= selectedRow.Cells(4).Value.ToString
      >> then you Open connection
      addFunction(ID ,fname ,lname ,username ,password )
      >>then you close connection
      End Sub

  • @misterjack347
    @misterjack347 Před 4 lety

    thnx helped alot

  • @Demoned001
    @Demoned001 Před 5 lety +1

    Thanks!!

  • @naimulislamrayan2447
    @naimulislamrayan2447 Před 4 lety

    what is concat?? 5:49

  • @gurekodok
    @gurekodok Před 4 lety +1

    Thanks brüda

  • @erolmanlapaz
    @erolmanlapaz Před 7 lety

    is this sql injection free? is this parameterized??

  • @Tactical_Style1994
    @Tactical_Style1994 Před 5 lety +1

    Love This

  • @shawnbarbat7417
    @shawnbarbat7417 Před 5 lety

    is datagridviw1 correct?

  • @mohammedmigbel4517
    @mohammedmigbel4517 Před 3 lety

    doesnt work

  • @martinpereira7000
    @martinpereira7000 Před 4 lety

    BASED

  • @vinjhuntan6062
    @vinjhuntan6062 Před 4 lety

    hi guys

  • @skykid1075
    @skykid1075 Před 6 měsíci

    I don't understand nothing

  • @hagnanbrandson1997
    @hagnanbrandson1997 Před 5 lety

    Very nice video!!! Please could you give your email so that I can ask you some question?Thank you

  • @ryokohonda4619
    @ryokohonda4619 Před 7 lety

    What is CONCAT?

  • @jokoppl5883
    @jokoppl5883 Před 5 lety

    table ??

  • @teegee4964
    @teegee4964 Před 5 lety +1

    THANKYOU!!