i sent XElement to my method to convert it to objects
and it result assigned to DataGrid source( method return 832 object )
but gridview doesn’t show any thing
dgv.DataSource = from objselect in Utility.ListXElementToDeclaration(query)
select objselect;
objselectshould have some properties (not fields)dgv.AutoGenerateColumnsshould betrue, or you should have some columns definedList<>:dgv.DataSource = (from .. select objselect).ToList();And it’s not a bad idea to use a BindingSource as a middleman between dgv and the List.