Reputation: 1640
How can I get items listed in a Datagrid and export it in a List of Object?
Upvotes: 0
Views: 3721
Reputation: 43636
If you specifically want type object
this should do the trick
var list = myDataGrid.Items.OfType<object>();
Upvotes: 4