473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RowFilter in DataSet

Hi

I have to RowFilter in a DataSet. My problem is My column
Names use aliases So when i filter lets say

Ds.defaultview.RowFilter="Region Name ='US'"

does not work as it has a space in between Region & Name.

Does anybody Knows How to overcome this problem?

thanks
shiv

Nov 16 '05 #1
1 8351
You can either change to .ColumnName property manually beforehand to
RegionName or you can use [Region Name]

HTH,

Bill
www.devbuzz.com
www.knowdotnet.com

"shiv" <an*******@discussions.microsoft.com> wrote in message
news:cc****************************@phx.gbl...
Hi

I have to RowFilter in a DataSet. My problem is My column
Names use aliases So when i filter lets say

Ds.defaultview.RowFilter="Region Name ='US'"

does not work as it has a space in between Region & Name.

Does anybody Knows How to overcome this problem?

thanks
shiv

Nov 16 '05 #2

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

Similar topics

5
by: Bamse | last post by:
hi, i have this situation: 1 gridDocs binded to a table, 1 gridRev + several controls binded to a dataset, which does not contain the above mentioned table; i want that when i select a row in...
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 =...
7
by: Jeff | last post by:
Hi - For my VB.NET app, I have a SQL2K database that I use to create a dataset with multiple data tables. I've created a dataview (dvReportsTo) of one of the tables, SCPMaster, and I've bound a...
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 ...
5
by: Gene Ariani | last post by:
Is there a limit to how big a rowfilter on dataview could be? my rowfilter is dynamically generated and if its get too big I get a stackoverflow error other wise it works fine. Any direction is...
6
by: astro | last post by:
I am trying to setup a filter for the dataset on a form as follows: Me.Ds1.Tables("company").DefaultView.RowFilter = "city='New York'" But nothing happens when this code is executed. The same...
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...
3
by: touf | last post by:
Hi, I've an error when using this expression myDataview.rowfilter="client id = '1111'" this is because the field name "client id" that contain a space. I don't have the possibility to change...
0
by: Vahag | last post by:
Hi. I have a problem when I use rowFilter propertie of dataset defaultView. I have column named id in my dataSet. I wright dataGridView1.DataSource = dataSet1.Tables.DefaultView.RowFilter = "id...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.