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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2016
  • Search Data In SQL And Display On DataGridView In VB Net
    Source Code: 1bestcsharp.blogspot.com/2016/...
    ----------------- Check out my VB.Net Projects! -------------------
    ▶ Inventory Management System - bit.ly/Vbnet_Inventory_System
    ▶ Students Information System - bit.ly/2MsvUp7
    ▶ Contacts Management System - bit.ly/2GzxnGQ
    ▶ Hotel Management System - bit.ly/VbnetHotelSystem
    ▶ Real Estate Management System - bit.ly/VBNet_RealEstate
    ▶ 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/VBNetProjectsBundle
    ▶ Take VB.Net Course - bit.ly/2wnNiVt
    --------------------------------------------------------------------------------------------------------
    Programming Projects:
    1bestcsharp.blogspot.com/p/pro...
    visit our blog 1bestcsharp.blogspot.com/
    instagram: / 1bestcsharpblog
    facebook: / 1bestcsharp
    twitter: / 1bestcsharp_
    subscribe: goo.gl/nRjPKk
    C# And Java Programming Books
    1bestcsharp.blogspot.com/2015/...
    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...

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

  • @Moses2212
    @Moses2212 5 ปีที่แล้ว +2

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

  • @MoeBhelil
    @MoeBhelil 5 ปีที่แล้ว +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!

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

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

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

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

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

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

  • @mich.k8242
    @mich.k8242 6 ปีที่แล้ว +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' ''

  • @Erick-ks5ee
    @Erick-ks5ee 4 ปีที่แล้ว

    Thanks man you are a genius

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

    Thanks man. It helps

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

    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

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

    Nice! Thank you!☺

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

    thanks it works perfectly

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

    Many thanks bro

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

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

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

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

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

    THANKYOU!!

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

    Buen tutorial

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

    Thanks very much !

  • @aquillahdarkova7904
    @aquillahdarkova7904 4 ปีที่แล้ว +2

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

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

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

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

    Thanks!!

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

    thnx helped alot

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

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

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

    '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

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

    Love This

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

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

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

    شكراً

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

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

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

    is this sql injection free? is this parameterized??

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

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

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

    is datagridviw1 correct?

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

    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  7 ปีที่แล้ว

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

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

    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 6 ปีที่แล้ว

      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

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

    Thanks brüda

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

      You saved my day

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

    BASED

  • @lloydsantos3537
    @lloydsantos3537 6 ปีที่แล้ว +3

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

  • @a.c6761
    @a.c6761 6 ปีที่แล้ว

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

    • @a.c6761
      @a.c6761 6 ปีที่แล้ว

      please

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

      i think CONCAT doesn't exist in 2008
      try using +

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

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

    • @ryokohonda4619
      @ryokohonda4619 7 ปีที่แล้ว +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)

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

    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 4 ปีที่แล้ว

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

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

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

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

      you need to declare the connection variable first

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

    what is concat?? 5:49

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

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

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

    What is CONCAT?

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

    what is the CONCAT?

    • @1BestCsharpblog
      @1BestCsharpblog  ปีที่แล้ว

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

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

    hi guys

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

    doesnt work

  • @skykid1075
    @skykid1075 3 หลายเดือนก่อน

    I don't understand nothing

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

    table ??

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

      can youexplain your question ?

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

      @@1BestCsharpblog Where does the table come from?

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

      it's the name of the datatable => 4:04

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

      @@1BestCsharpblog ok thanks

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

    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?