473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Apr 9 '06 #1
2 1097
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" <so*****@MicroZoft.com> schreef in bericht
news:44**********************@text.nova.planet.nl. ..
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

Apr 9 '06 #2
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" <so*****@MicroZoft.com> schreef in bericht
news:44**********************@text.nova.planet.nl. ..
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

Apr 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ryan Moore | last post by:
I have a dataset (called adset) which has a column called "Large" which is either an integer 0 or 1. I am creating 2 dataviews, one which should display the 1's and one which should display the...
8
by: Dave Hagerich | last post by:
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables); theView.RowFilter =...
13
by: Steve | last post by:
I have a form with a dataset and a datagrid. I created a dataview on this dataset. When the user modifies the datagrid, I look up this record in the dataview to make sure it is unique. Here is...
14
by: Able | last post by:
Dear friends Dim myDataView as DataView = New DataView(dsData.Tables("tblCustomers")) myDataView.RowFilter = "City = 'London'" My question is how to loop through all rows in myDataView and...
8
by: KC | last post by:
For a DataView.Rowfilter can I use more than one expression? I want to filter out two different things. For example can I take: dv.RowFilter = "MTX <> 'Customer Forcast'" and ...
3
by: Catullus | last post by:
Hi everyone, I'm a n00b on VB.net programming and now I stumbled upon a problem I can't solve, even after browsing the net for hours.. I have a dataview witg 4 columns; 2 string columns and 2...
7
by: Rich | last post by:
Hello, I am pulling master data from one master table and detail data from two detail tables. The rows from the master data are displayed in textboxes on my form which are bound to the data...
0
by: neeraj | last post by:
Hi, all Could anny one give me help how can I use like operator with these data types "integer , datetime or boolean" in DataView.RowFilter Actually when I try to get the data from dataview...
1
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
5
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.