473,404 Members | 2,179 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,404 software developers and data experts.

Table.DefaultView.RowFilter on DataGrids

I have a DataSet with two tables and two datagrids with a Parent/Child Relationship. While that works fine, setting a Rowfilter to the Parent on the parent table defaultview does not. If I use a DataView, the parent row is filtered correctly, but of course there is now no relationship between the DV and the child table.

Is it possible to set a runtime filter on a datagrid without using a DataView? If not, is it possible to create a relationship between a DataView and a child table?

I suspect a DataViewManager is what I need to use, but I'm having a devil of a time trying to figure out how to use it.
Nov 16 '05 #1
0 1802

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

Similar topics

0
by: Ian Bennett via .NET 247 | last post by:
Is there any way a datatable, that is populated with te colums Hdate, State1, State2, State3, etc can be filtered with an OR condition? The dt is populated by selecting the colums Hdate and State1,...
0
by: Kartic | last post by:
Hi, I have a dataset(dspo) with two tables Inventory(Parent) and Locations(child) I have added a relation between thest two tables dsPO.Relations.Add("Inventory2Locations",...
8
by: Richard L Rosenheim | last post by:
I have a dataset containing a parent table related to a child table. The child table contains an ID field (which is configured as autonumber in the datatable), the ID of the parent, plus some...
33
by: Geoff Jones | last post by:
Hiya I have a DataTable containing thousands of records. Each record has a primary key field called "ID" and another field called "PRODUCT" I want to retrieve the rows that satisy the following...
11
by: Ron L | last post by:
I have a data table that lists a series of items in my database. In my user form, I want the user to be able to filter by a number of criteria (e.g. location, contract, date modified, etc). Other...
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...
0
by: Toufik | last post by:
Hi, I've a strange problem, when I execute the code below I've the error "An unhandled exception of type 'System.NullReferenceException' occurred in system.data.dll Additional information: Object...
4
by: Cylix | last post by:
I am using vs2003, How can I do the job like select studentID from student where studentName='Jay' Do I need to iterate the datatable of the dataset row by row? Or I can query it?
1
by: Sam | last post by:
I have a dataset with 2 tables. I want to display in a datagrid the rows in table 1, that are not in table 2. I'm trying the rowfilter on a dataview, but I'm getting an error. The error I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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.