Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read, manipulate XML elements and attach it to a GridView

Status
Not open for further replies.

neualex

Programmer
Feb 26, 2008
53
US
Hello folks,

I am looking for suggestions on how to best handle the following scenario:

I need to present data from an XML file in a GridView.
The complication is that I only need to display certain attributes from the XML elements.

So, I was thinking reading the XML file, select the elements and attributes I need to display, write such values to another TEMP XML file, load it in a DataSet, and display it on a GridView.

Do you think that's the best way to approach this?
How would you do it?

Thank you for your collaboration.

...neualex
 
How large are the xml files you are dealing with?

What type of format are you implementing for the gridview?
 
The XML file is quite small...5KB

However, the XML file has so many attributes that I dont need. XML file is auto-generated by another third-party application.

Format on the GridView? I'm loading the grid from code -if that's what you mean.

...neualex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top