Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. DataView - RowFilter

DataView - RowFilter

Scheduled Pinned Locked Moved Visual Basic
helpdatabase
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LordLothar
    wrote on last edited by
    #1

    Dim refDV As DataView = New DataView(DataSet11.Tables("references")) refDV.RowFilter = "" & ComboBox1.SelectedItem & " = like ('%" & TextBox4.Text & "%')" DataGrid1.DataSource = refDV ================================= Above code cause error "Missing operand before '=' operator" Why that happen. I want to perform selection using 'like' operator as in sql statement and want to include control inside the filtering. Could someone help plz.

    W G 2 Replies Last reply
    0
    • L LordLothar

      Dim refDV As DataView = New DataView(DataSet11.Tables("references")) refDV.RowFilter = "" & ComboBox1.SelectedItem & " = like ('%" & TextBox4.Text & "%')" DataGrid1.DataSource = refDV ================================= Above code cause error "Missing operand before '=' operator" Why that happen. I want to perform selection using 'like' operator as in sql statement and want to include control inside the filtering. Could someone help plz.

      W Offline
      W Offline
      WillemM
      wrote on last edited by
      #2

      Get rid of the '=' operator. WM.
      What about weapons of mass-construction?

      L 1 Reply Last reply
      0
      • W WillemM

        Get rid of the '=' operator. WM.
        What about weapons of mass-construction?

        L Offline
        L Offline
        LordLothar
        wrote on last edited by
        #3

        The error like this again "Missing operand before 'like' operator" those message is really i cant get it.

        W 1 Reply Last reply
        0
        • L LordLothar

          Dim refDV As DataView = New DataView(DataSet11.Tables("references")) refDV.RowFilter = "" & ComboBox1.SelectedItem & " = like ('%" & TextBox4.Text & "%')" DataGrid1.DataSource = refDV ================================= Above code cause error "Missing operand before '=' operator" Why that happen. I want to perform selection using 'like' operator as in sql statement and want to include control inside the filtering. Could someone help plz.

          G Offline
          G Offline
          GuruPandian
          wrote on last edited by
          #4

          Hi, - Operator "=" will not take place with the "Like" Operator. With Regards, :)

          1 Reply Last reply
          0
          • L LordLothar

            The error like this again "Missing operand before 'like' operator" those message is really i cant get it.

            W Offline
            W Offline
            WillemM
            wrote on last edited by
            #5

            refDV.RowFilter = "" & ComboBox1.SelectedItem & " = ('%" & TextBox4.Text & "%')" Maybe this will work. WM.
            What about weapons of mass-construction?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups