Dynamic column building in WPF DataGrid

I have an object that has about 30 properties, depending on who is viewing the data, I need to present it with only 10-12 properties. These properties will form the WPF datagrid data columns. I am using .Net 4.0 however all this will happen at runtime. I need to do this MVVM. Any guidance on how to achieve this will be appreciated.

Yours faithfully,

+3
source share
1 answer

You have two options, as far as I can see.

1) ViewableDetailsType enum ViewModel, , . DataGrid, Columns , .

2) -- DTO . , . - , DataGrid .

, MVVM, ViewModel , , .

0

All Articles