473,394 Members | 1,696 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,394 software developers and data experts.

Customizing Relations in a Typed DataSet

I'm working in Visual Studio 2005.

I'm looking at two tables in the Data Set Designer. There's a relation
between the two tables that lists 7 matching columns. Works great.

One of the key columns from each table is called "Team". Valid values are F1
through F7, and when they match, the result set works exactly like you'd
think it would.

The problem is that somebody decided to put in a "Team" value of ALL, which
of course doesn't match any of the existing F1 through F7 values.

Any suggestions for using some sort of wild card or adding custom code to
the DataSet that won't be overwritten by the DataSet Designer? It seems like
the alternative is to remove "Team" from the Relation and custom code this in
the UI, but I think custom-defining the relation in the DataSet would be
cleaner.

Thanks,
Randy
Sep 7 '07 #1
1 1450
Hi
Doesn't the problem actually boil down to incorrect data?
The 'All' entry is a summary of certain aspects of each team data
row.
It could be constructed as a view, it has no place as a row in the
table(s).
From your question my suspicion is that your UI should be presented
with all of the rows from the dataset and that the filtering should be
done there.
Dataset -Bindingsource -datagridview.
Bindingsource.filter controls what rows are displayed.

hth
Bob
On Fri, 7 Sep 2007 11:18:01 -0700, randy1200
<ra*******@discussions.microsoft.comwrote:
>I'm working in Visual Studio 2005.

I'm looking at two tables in the Data Set Designer. There's a relation
between the two tables that lists 7 matching columns. Works great.

One of the key columns from each table is called "Team". Valid values are F1
through F7, and when they match, the result set works exactly like you'd
think it would.

The problem is that somebody decided to put in a "Team" value of ALL, which
of course doesn't match any of the existing F1 through F7 values.

Any suggestions for using some sort of wild card or adding custom code to
the DataSet that won't be overwritten by the DataSet Designer? It seems like
the alternative is to remove "Team" from the Relation and custom code this in
the UI, but I think custom-defining the relation in the DataSet would be
cleaner.

Thanks,
Randy
Sep 7 '07 #2

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

Similar topics

1
by: Iain | last post by:
I've a fairly complex schema which I'm trying to create a typed data set for. I've had a number of issues to date but it is sort of working (e.g. elements are not considered nullable unless...
4
by: Alfetta159 | last post by:
I've been setting up a schema with the XML Designer in VS .NET 2003. The designer lets me set up a lot of things including a complex type that contains an unnamed complex type called modified. ...
0
by: Darren Clark | last post by:
I am trying to understand typed datasets more.... and i am stuck on a little problem I have created a type dataset called "News" this consists of 2 tables. NewsTable and NewsTypes. the news...
1
by: Randy Fraser | last post by:
How do I create a relationship on muliple columns in an untyped dataset. Why does this not work. da.Fill(ds) ds.Tables(0).TableName = "DesignSummary" ds.Tables(1).TableName = "FormulaSummary"...
3
by: Stig Nielsson | last post by:
Hi, I am using a strongly typed dataset in .Net 2.0, and would like all tables to inherit from a cusomt datatable class instead of DataTable. The reason for this is that I want some common...
2
by: Joe | last post by:
Hi I have a dataset with 3 tables and 2 relations Is there a way to when I am at 1 row to tell if there is a relation on that row ??? I have the code hardcoded but try to make it work if the #...
2
by: Joe | last post by:
Hi I am going to receive a dataset downstream and I will not know the the fields number of field relations number of relations So I have to be flexible to take unknown data and be able to...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.