DataGrid support for XML with different node types
From: magister (yurps_at_yahoo.co.uk)
Date: 11/03/04
- Next message: yonggangwang: "Re: Data access and vb class file from .net novise"
- Previous message: Jan Nielsen: "Re: Check if .RowFilter returns no records and cancel..."
- Next in thread: Nigel Armstrong: "RE: DataGrid support for XML with different node types"
- Reply: Nigel Armstrong: "RE: DataGrid support for XML with different node types"
- Messages sorted by: [ date ] [ thread ]
Date: 3 Nov 2004 05:46:11 -0800
Hello,
I have xml like this....
<test>
<question>sdfsa</question>
<section><question>43ga</question>
<question>asdf</question>
</test>
I make and xsd file with
<xs:all>
<xs:element....
<xs:element....
</xs:all>
I then bind the XML to a DataGrid...
DataGrid.DataSource = DataSet;
DataGrid.DataBind();
but I only get the questions, I notice there is a DataMember property
I can set to DataGrid.DataMember = "Section"; and I will get that one,
but essential I want a table with both elements in there...
Is there anyway to do this...?
Thank You
- Next message: yonggangwang: "Re: Data access and vb class file from .net novise"
- Previous message: Jan Nielsen: "Re: Check if .RowFilter returns no records and cancel..."
- Next in thread: Nigel Armstrong: "RE: DataGrid support for XML with different node types"
- Reply: Nigel Armstrong: "RE: DataGrid support for XML with different node types"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|