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. How to make upper all data in datatable?

How to make upper all data in datatable?

Scheduled Pinned Locked Moved C#
salesregexhelptutorialquestion
3 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.
  • P Offline
    P Offline
    Pankaj Joshi
    wrote on last edited by
    #1

    Hello experts, I'm making a matching program that will match the customer name. For that I have a datatable with all customer names. I want to make them upper before matching how i can do that...? I'm using foundCustomerRows = Datatable.Select("CustomerFullName = '" + strCustomerToPost.ToString().Toupper() + "'"); Is there any property to make Select ( ucase(CustomerFullName) =....?:confused: Or there is any other way to make all the column upper in a data table when you match the data...? Please help...

    Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

    D E 2 Replies Last reply
    0
    • P Pankaj Joshi

      Hello experts, I'm making a matching program that will match the customer name. For that I have a datatable with all customer names. I want to make them upper before matching how i can do that...? I'm using foundCustomerRows = Datatable.Select("CustomerFullName = '" + strCustomerToPost.ToString().Toupper() + "'"); Is there any property to make Select ( ucase(CustomerFullName) =....?:confused: Or there is any other way to make all the column upper in a data table when you match the data...? Please help...

      Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      I've never used it but I believe you need UPPER(CustomerFullName)

      1 Reply Last reply
      0
      • P Pankaj Joshi

        Hello experts, I'm making a matching program that will match the customer name. For that I have a datatable with all customer names. I want to make them upper before matching how i can do that...? I'm using foundCustomerRows = Datatable.Select("CustomerFullName = '" + strCustomerToPost.ToString().Toupper() + "'"); Is there any property to make Select ( ucase(CustomerFullName) =....?:confused: Or there is any other way to make all the column upper in a data table when you match the data...? Please help...

        Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

        E Offline
        E Offline
        Ennis Ray Lynch Jr
        wrote on last edited by
        #3

        Use the database for that query and not the dataset. Some databases have the option to enable case sensitive or insensitive searches. Also the ability to do the choice in the where clause.

        Need a C# Consultant? I'm available.
        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

        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