Attached is a simple xml document. I have been trying to bind this xml document to a datagrid BUT having little and no luck. Has anybody actually done this??
Printable View
Attached is a simple xml document. I have been trying to bind this xml document to a datagrid BUT having little and no luck. Has anybody actually done this??
How have you tried to do it? I haven't looked at the file but using a DataSet it should be like this:
VB Code:
Dim ds As new Dataset ds.ReadXML("pathtoxmlfile") DataGrid1.DataSource=ds
Thanks .. that is what I tried BUT my TableStyles.Add could not be inserted. So .. all I was/am getting in my datagrid is basically everything in the xml documrny. I want to be able to strip off the key / item text.
thanks ..gollnick
Add the tablestyles at designtime and make sure the mappingname property matches for the xml data to have the control apply it.