DataSet.GetXml() nesting not working in 1.1 of framework

  • Thread starter Thread starter Eric Decker
  • Start date Start date
E

Eric Decker

With framework 1.0 the dataset.getxml() method returned the children nested
within the parent. This doesn't seem to function this way with 1.1. Is
there something I'm missing?
 
Hello Eric,

Thanks for your post. I'd like to make check whether you have set the
Nested property of a DataRelation to true which causes the child rows of
the relation to be nested within the parent column. You can set it like:

DataSet.Relations["MyRelation"].Nested = True;

Nested DataRelations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconnesteddatarelations.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 
This did the trick. Do you know how to set the nested to true from the xsd
definition? Is this possible?
 
Eric,

Define the relationship in the visual designer. Then highlight the
relationship and click the properties icon from the VS toolbar. Set the
'Nested' property to 'True'

Thanks

Eric Decker said:
This did the trick. Do you know how to set the nested to true from the xsd
definition? Is this possible?


Tian Min Huang said:
Hello Eric,

Thanks for your post. I'd like to make check whether you have set the
Nested property of a DataRelation to true which causes the child rows of
the relation to be nested within the parent column. You can set it like:

DataSet.Relations["MyRelation"].Nested = True;

Nested DataRelations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconnesteddatarelations.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 
Back
Top