Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: GDI+ Image from Graphics Pin
Heath Stewart16-May-04 11:17
protectorHeath Stewart16-May-04 11:17 
Generalregd richtextbox and datagrid Pin
karteek12-May-04 21:47
karteek12-May-04 21:47 
GeneralRe: regd richtextbox and datagrid Pin
Heath Stewart13-May-04 2:58
protectorHeath Stewart13-May-04 2:58 
Generalfirewall Pin
shahrokh nabavi12-May-04 21:07
shahrokh nabavi12-May-04 21:07 
GeneralRe: firewall Pin
Colin Angus Mackay12-May-04 23:26
Colin Angus Mackay12-May-04 23:26 
GeneralRe: firewall Pin
walker_net23-Jun-04 22:54
walker_net23-Jun-04 22:54 
GeneralRe: firewall Pin
Colin Angus Mackay23-Jun-04 23:03
Colin Angus Mackay23-Jun-04 23:03 
GeneralTable problem (Xml) Pin
bertcox12-May-04 20:40
bertcox12-May-04 20:40 
Hello,

I have a xml-file that looks like this,

<packageimplementation version="1.0">
<companydependancies>
<main>
<tablegroups>
<tablegroup name ="programs">independent</tablegroup>
<tablegroup name ="parameters">independent</tablegroup>
</tablegroups>
</main>
<exeptions company="RLS">
<tablegroups>
<extablegroup name = "settings">independent</extablegroup>
</tablegroups>
<tables>
<extable name ="progmst">independent</extable>
</tables>
</exeptions>
</companydependancies>
</packageimplementation>


Now i wanted to show the tablegroups and the extables in a datagrid, i do it like this:

DataSet ds = new DataSet();
ds.ReadXml(filePath);
dataGrid1.DataSource = ds;
dataGrid1.DataMember = "tablegroup";

DataSet ds2 = new DataSet();
ds2.ReadXml(filePath);
dataGrid2.DataSource = ds2;
dataGrid2.DataMember = "extable";

But this doens't work:

An unhandled exception of type 'System.ArgumentException' occurred in system.data.dll
Additional information: The same table (tablegroups) cannot be the child table in two nested relations.

Why is this wrong and what can i do about it?

Thx in advance
GeneralRe: Table problem (Xml) Pin
Aryadip12-May-04 21:20
Aryadip12-May-04 21:20 
GeneralScroll Bar Pin
sreejith ss nair12-May-04 19:18
sreejith ss nair12-May-04 19:18 
GeneralRe: Scroll Bar Pin
Heath Stewart13-May-04 2:54
protectorHeath Stewart13-May-04 2:54 
GeneralText Readers, Streams, *ugh* Pin
gUrM33T12-May-04 17:42
gUrM33T12-May-04 17:42 
GeneralRe: Text Readers, Streams, *ugh* Pin
Paul Watson12-May-04 21:23
sitebuilderPaul Watson12-May-04 21:23 
GeneralRe: Found an alternate way ... Pin
gUrM33T13-May-04 0:23
gUrM33T13-May-04 0:23 
GeneralRe: Text Readers, Streams, *ugh* Pin
Heath Stewart13-May-04 2:52
protectorHeath Stewart13-May-04 2:52 
GeneralRe: Text Readers, Streams, *ugh* Pin
Mike Dimmick13-May-04 4:37
Mike Dimmick13-May-04 4:37 
GeneralRe: Text Readers, Streams, *ugh* Pin
gUrM33T13-May-04 14:57
gUrM33T13-May-04 14:57 
GeneralRe: Text Readers, Streams, *ugh* Pin
Heath Stewart13-May-04 16:51
protectorHeath Stewart13-May-04 16:51 
GeneralRe: Text Readers, Streams, *ugh* Pin
gUrM33T13-May-04 18:06
gUrM33T13-May-04 18:06 
GeneralRe: Text Readers, Streams, *ugh* Pin
Heath Stewart14-May-04 2:00
protectorHeath Stewart14-May-04 2:00 
GeneralChange tabs with a button click Pin
itstime9812-May-04 16:56
itstime9812-May-04 16:56 
GeneralRe: Change tabs with a button click Pin
Aryadip12-May-04 18:01
Aryadip12-May-04 18:01 
Generalconverting a struct to an byte array Pin
User 96257812-May-04 11:59
User 96257812-May-04 11:59 
GeneralRe: converting a struct to an byte array Pin
Heath Stewart12-May-04 12:48
protectorHeath Stewart12-May-04 12:48 
GeneralRe: converting a struct to an byte array Pin
User 96257812-May-04 16:57
User 96257812-May-04 16:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.