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. DataView.RowFilter?

DataView.RowFilter?

Scheduled Pinned Locked Moved C#
question
4 Posts 2 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.
  • G Offline
    G Offline
    gadgetfbi
    wrote on last edited by
    #1

    Can I use the RowFilter of a DataView to populate it with only the enteries in the specified coloum that start with a certian letter? tia

    R 1 Reply Last reply
    0
    • G gadgetfbi

      Can I use the RowFilter of a DataView to populate it with only the enteries in the specified coloum that start with a certian letter? tia

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      gadgetfbi wrote: Can I use the RowFilter of a DataView to populate it with only the enteries in the specified coloum that start with a certian letter? Confused by the statement. The "in the specified column that starts with". The column starts with a certian letter or the data in the column starts with a certain letter? If it is the latter and you only want to filter the rows by a given column that has data starting with a certian letter you would: myDataView.RowFilter = "substring(myColumn,1,1)='B'" Where myColumn is the column you wish to filter by and 'B' is the letter you wish to match. Rocky Moore <><

      G 1 Reply Last reply
      0
      • R Rocky Moore

        gadgetfbi wrote: Can I use the RowFilter of a DataView to populate it with only the enteries in the specified coloum that start with a certian letter? Confused by the statement. The "in the specified column that starts with". The column starts with a certian letter or the data in the column starts with a certain letter? If it is the latter and you only want to filter the rows by a given column that has data starting with a certian letter you would: myDataView.RowFilter = "substring(myColumn,1,1)='B'" Where myColumn is the column you wish to filter by and 'B' is the letter you wish to match. Rocky Moore <><

        G Offline
        G Offline
        gadgetfbi
        wrote on last edited by
        #3

        yeh, thanks. I wasnt sure if I could use string operators in the filter expression. I need to read more. Rob

        R 1 Reply Last reply
        0
        • G gadgetfbi

          yeh, thanks. I wasnt sure if I could use string operators in the filter expression. I need to read more. Rob

          R Offline
          R Offline
          Rocky Moore
          wrote on last edited by
          #4

          Yeah, they have a lot of functionality in there filters and sorting ability in DataSets. Makes for a lot less work! Rocky Moore <><

          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