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 1 1473
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.f ilter controls what rows are displayed.
hth
Bob
On Fri, 7 Sep 2007 11:18:01 -0700, randy1200
<ra*******@disc ussions.microso ft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 minOccurs="0" is present. If not the
codegen:nullValue attribute is ignored).
What I'm seeing at the moment is that if I do NOT add in key and key ref
relations, the cs generated puts in sensibly named relations with
appropriate accessors. But...
|
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.
When I try to preview the dataset, I get an error described as "The same
table (modified) cannot be the child table in two nested relations.
I've run into this before with a different complex type, and I've changed
the name of the instance of...
|
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 has news_id int, title string and type int
the news type table has type_id int and type_name string
There is also a relationship created which is joining on the news.type and
then newstype.type_id
|
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"
ds.Tables(2).TableName = "MaterialSummary"
ds.Tables(3).TableName = "ItemUsage"
ds.Tables(5).TableName = "UsageSummary"
|
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 code excuted on the row
events, and this I want to implement this once in a Table base class.
ie. instead of having this code generated:
| |
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 # of tables and
#relations increase or decrease
So I can just pass any dataset and walk thru the rows??
Thanks
|
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 summarize all
the info being passed
|
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 DataTable("SliceInfo")
Dim tblSliceRatings As New DataTable("SliceRatings")
'.... All the adding datacolumns, datarows, etc. goes here..
DatasetInit.Tables.Add(tblSliceInfo)
|
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 with the ability to configure the connection string via a
config file? The designer seems to hard-code the connection string into the
dataset itself, which just can't be right.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |