DataView.RowFilter question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric

    DataView.RowFilter question

    For my webapp I'm building a search page where the user can search through
    data stored in a xml file.
    I thought I use the dataview Rowfilter property but it seems it only works
    if the search text is exactly the same as the description text in the
    datatable.

    How, if possible, can I use RowFilter in a way that it will also select
    those rows where the description contains the search text?

    i.e.: description text = "This is a test"
    Search text = "es"

    This line would be shown because the search text is in the description text.

    I tried with the LIKE operator but that seems to be the same as the =
    operator.

    any suggestions?

    rg,
    Eric


  • Eric

    #2
    Re: DataView.RowFil ter question

    Never mind...I knew it was simple it just didn't pop up....

    I used "*es*" as the search text and it did it...

    rg,
    Eric


    "Eric" <someone@MicroZ oft.com> schreef in bericht
    news:44392824$0 $2032$ba620dc5@ text.nova.plane t.nl...[color=blue]
    > For my webapp I'm building a search page where the user can search through
    > data stored in a xml file.
    > I thought I use the dataview Rowfilter property but it seems it only works
    > if the search text is exactly the same as the description text in the
    > datatable.
    >
    > How, if possible, can I use RowFilter in a way that it will also select
    > those rows where the description contains the search text?
    >
    > i.e.: description text = "This is a test"
    > Search text = "es"
    >
    > This line would be shown because the search text is in the description
    > text.
    >
    > I tried with the LIKE operator but that seems to be the same as the =
    > operator.
    >
    > any suggestions?
    >
    > rg,
    > Eric
    >[/color]


    Comment

    • Eric

      #3
      Re: DataView.RowFil ter question

      Never mind...I knew it would be simple...it just didn't pop up...

      I used as the seach text: "*es*" and that did it...

      rg,
      Eric



      "Eric" <someone@MicroZ oft.com> schreef in bericht
      news:44392824$0 $2032$ba620dc5@ text.nova.plane t.nl...[color=blue]
      > For my webapp I'm building a search page where the user can search through
      > data stored in a xml file.
      > I thought I use the dataview Rowfilter property but it seems it only works
      > if the search text is exactly the same as the description text in the
      > datatable.
      >
      > How, if possible, can I use RowFilter in a way that it will also select
      > those rows where the description contains the search text?
      >
      > i.e.: description text = "This is a test"
      > Search text = "es"
      >
      > This line would be shown because the search text is in the description
      > text.
      >
      > I tried with the LIKE operator but that seems to be the same as the =
      > operator.
      >
      > any suggestions?
      >
      > rg,
      > Eric
      >[/color]


      Comment

      Working...