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. C#
  4. like operator in C# Datatable

like operator in C# Datatable

Scheduled Pinned Locked Moved C#
databasecsharp
4 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.
  • R Offline
    R Offline
    Ruchi Gupta
    wrote on last edited by
    #1

    Hi all, I have a datatable, which I want to query by using LIKE operator like we do in SQL SQL Select * from Tab1 where col1 LIKE '%xyz%' C# datatable dt dt.select(...) Is it possible in C#. Please advice Thanks Ruchi

    P 1 Reply Last reply
    0
    • R Ruchi Gupta

      Hi all, I have a datatable, which I want to query by using LIKE operator like we do in SQL SQL Select * from Tab1 where col1 LIKE '%xyz%' C# datatable dt dt.select(...) Is it possible in C#. Please advice Thanks Ruchi

      P Offline
      P Offline
      Paul Lyons
      wrote on last edited by
      #2

      Yes, it is possible. Check here[^] for an explanation and examples.

      Paul Lyons, CCPL
      Certified Code Project Lurker

      S R 2 Replies Last reply
      0
      • P Paul Lyons

        Yes, it is possible. Check here[^] for an explanation and examples.

        Paul Lyons, CCPL
        Certified Code Project Lurker

        S Offline
        S Offline
        sreejith ss nair
        wrote on last edited by
        #3

        dear paul, please re-check whether it is working in table select. dataset.Table[0].Select("Disp==%sdsd%"); (forget abt the above syntax). It is not working for me.. :sigh: ************************** S r e e j i t h N a i r **************************

        1 Reply Last reply
        0
        • P Paul Lyons

          Yes, it is possible. Check here[^] for an explanation and examples.

          Paul Lyons, CCPL
          Certified Code Project Lurker

          R Offline
          R Offline
          Ruchi Gupta
          wrote on last edited by
          #4

          Paul, I know how to use Select with DataTable. I couldn't find any example for LIKE operator from the link that you specified. Could you please point out specific example out of that link. Thanks Ruchi

          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