2010-04-12 5 views

Répondre

0

Vous pouvez essayer quelque chose comme ceci:

 // choose you filename there 
     XElement xElement = XElement.Load("file.xml"); 
     // choose appropriate properties 
     dataGridView1.DataSource = (from el in xElement.Elements() 
        select new { a = el.Name.ToString(), b = "Whatever"}).ToList(); 
Questions connexes