Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to create grid with XML document datasource
Message
General information
Forum:
ASP.NET
Category:
Migration
Miscellaneous
Thread ID:
00842495
Message ID:
00842500
Views:
14
>This is beyond frustrating....I have tried about a dozen examples, none of which do the simple act of binding an asp.net datagrid to an xml document as datasource. Is this possible to do? I assume it should be simple.
>
>I did add a databind() method to the code, which I thought should have been the caveat.
>
>I've tried both graphically setting up the document as well as setting all the datasets manually and binding through code. The end result is ALWAYS a screen with absolutely no grid showing. I tried the same thing with a windows form and had a slightly more descriptive result...a grid with one row of all null values.
>
>The sad thing is it's so easy to open the XML document, press the data tab, and voila! it's all there.
>
>What am I missing? I am a beginner so it may be something obvious.
>
>Thanks in advance.


Ok, you have tried both ASP.NET and Windows Forms DataGrid? I haven't done Windows grids, but I have done ASP.NET grid. Are you reading the XML into a dataset, is that working? Then you need to setup the the DataGrid to generate the columns, it is a property.

Then you need to bind the DataSource to the XML DataSet, and then call DataBind on the Datagrid, inside of the Page Load or Page Init.

let me know if you are having problems and I'll send you code examples.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform