RE: dataset filter question
From: Bill Borg (BillBorg_at_discussions.microsoft.com)
Date: 10/13/04
- Next message: GD: ""Invalid mail attachment" error from server only"
- Previous message: Jeronimo Bertran: "Re: Navigate from href in Iframe"
- In reply to: Mike: "dataset filter question"
- Next in thread: Mike: "RE: dataset filter question"
- Reply: Mike: "RE: dataset filter question"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 12:47:01 -0700
Set the rowfilter only one time, using OR to separate your values, e.g.
defaultview.rowfilter = "carmake='chevy' or carmake='ford'"
As written, I presume it only works for the last one in the list.
Bill
"Mike" wrote:
> I'm trying to filter a dataset on items that are being passed in via a
> querystring.
>
> the string looks like this.
> chevy|ford|BMW|
>
> on the information page i split the string such as
> selCars.split("|")
>
> and i want to filter the dataset based on the string so i do this
> dataview.rowfilter ="carmake=" & "'" cars & "'"
> datalist.datasource = dv
> datalist.databind
>
> now my question is how can i populate and display the datalist for
> everything coming in via the querystring and split them correctly at the |?
> If I only pass 1 item in such as BMW without the | it works fine, but if i
> pass more then 1 and split using | it doesn't work.
>
> my code snippet
> for i = 0 to CarArray.Length
> dataview.rowfilter ="carmake=" & "'" cars & "'"
> next
> datalist.datasource = dataview
> datalist.databind
>
> i need a table for each item being passed in
>
>
- Next message: GD: ""Invalid mail attachment" error from server only"
- Previous message: Jeronimo Bertran: "Re: Navigate from href in Iframe"
- In reply to: Mike: "dataset filter question"
- Next in thread: Mike: "RE: dataset filter question"
- Reply: Mike: "RE: dataset filter question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|