Hello and Happy new year!
I have a Dataset created from a xml schema (with the xsd tool).
I would like to use this dataset as an objectdatasource for a gridview. The data will come from a xml file so I choose the readxml(string fileName) method for the select method (in the wizard).
But the schema is not recognized so I can't edit the columns properly in the gridview.
I think this is because the readxml method returns a XmlReadMode object instead of a strong typed datatable. Is there a workaroud for this
Thank You

Bind objectdatasource to xmlschema
White Hawk
Hi, Pierre Christophe
It seems that you're using ASP.NET as you metioned the GridView which is a control of ASP.NET, but for databinding, there's comparability more or less between WinForm and Web Form, here I find a sample for you:
http://www.windowsforms.net/Samples/download.aspx PageId=1&ItemId=220&tabindex=4
try download it, and have a look at the DataGridView Overview sample, it use a xml as data source which reading xml to dataset according to xml schema.
Hope it helps. Best Regards.
Shin Ye
Darrell Davis