I have an ObservableCollection<SolarSystemViewModel>
where SolarSystemViewModel
derives from the ViewModelBase
. The ViewModelBase
exposes IsInDesignMode
and IsInDesignModeStatic
that are showing up in the datagrid when I bind to my ObservableCollection
. How can I hide those columns from the datagrid by default without having to generate the XAML with Blend and then disable those columns manually?
Thanks.
Example:
AutoGenerateColumns=True
, you can't with the default datagrid. You'll need to create the specific columns you want in the view. – Semidiurnal