Users database in XML to a datagrid  
Author Message
Mortsdeh





PostPosted: XML and the .NET Framework, Users database in XML to a datagrid Top

Hi,

I have a XML file that stores users like this:

<users>
<user>
<f_name>Bob</f_name>
<surname>Geldof</surname>
<phone>123456789</phone>
</user>
</users>

I would like to display the user data in a datagrid having three columns. How would I do that

Best
/M



.NET Development3  
 
 
Martin Honnen





PostPosted: XML and the .NET Framework, Users database in XML to a datagrid Top

Are you using .NET 1.1 or 2.0 Are you building a Web application (ASP.NET application) where you need the data grid With ASP.NET 2.0 you can use an XmlDataSource and bind that to a control.

 
 
Mortsdeh





PostPosted: XML and the .NET Framework, Users database in XML to a datagrid Top

I use VB.NET in Visual Studio.NET 2003 and .NET framwork 1.1
 
 
Sergey Dubinets - MSFT





PostPosted: XML and the .NET Framework, Users database in XML to a datagrid Top

To access data from XML file you can load it to XmlDocument and take values from there.

Questions about populating DataGrid should be posted to http://forums.asp.net.