Wow.. Excellent ! Thank you very much for your brilliant support ! You saved me. I will mark your replies as answers. Is there anyway to increase your points? I really like your support and you were bloody fast.
Never mind, I hope you can also help others when you are free, this will also do you well in technology.
maduranga001
I do not want to bind all fields. I just want only 4 fields to bind to the datagridview.
Write as many as you want, That's OK.
Example:
var result = from e in XDocument.Load("xxx.xml").Descedants("ticket")
select new
{ Subject= e.Element("subject").Value, Description = e.Element("description").Value, NiceId = e.Element("nice-id").Value, DueDate = e.Element("due-date").Value
};
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: get data from XML datatable
Nov 14, 2011 04:14 AM|LINK
Never mind, I hope you can also help others when you are free, this will also do you well in technology.
Write as many as you want, That's OK.
Example:
var result = from e in XDocument.Load("xxx.xml").Descedants("ticket")
select new
{
Subject= e.Element("subject").Value,
Description = e.Element("description").Value,
NiceId = e.Element("nice-id").Value,
DueDate = e.Element("due-date").Value
};