roybalderama
roybalderama

Reputation: 1640

Export Datagrid Items to a List of Object

How can I get items listed in a Datagrid and export it in a List of Object?

Upvotes: 0

Views: 3721

Answers (1)

sa_ddam213
sa_ddam213

Reputation: 43636

If you specifically want type object this should do the trick

var list = myDataGrid.Items.OfType<object>();

Upvotes: 4

Related Questions