var Log = from c in xmlDoc.Descendants("Event") select new { Type = ((string)c.Element("Type").Value), Class = ((string)c.Element("Class").Value), Method = ((string)c.Element("Method").Value), DateTime = ((string)c.Element("DateTime").Value), Text = ((string)c.Element("Text").Value), StackTrace = ((string)c.Element("StackTrace").Value), SourceTable = ((string)c.Element("SourceTable").Value), SourceField = ((string)c.Element("SourceField").Value), SourceValue = ((string)c.Element("SourceValue").Value), TargetTable = ((string)c.Element("TargetTable").Value) }; dbGridLog.AutoGenerateColumns = true; dbGridLog.DataSource = Log.ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)