Bind DataGridTextColumn Visibility Property in WPF
问题 I have a datagrid whose ItemsSource binds to a CollectionViewSource . In each column I specify the Path property of the binding to get the specific information to display. What I'd like to do is toggle some of the columns with a checkbox if the user wants more info. To do this, I need to bind the visibility property to the value of the checkbox (with a converter) but I'm pretty sure the data context of the column is interfering with the binding. <DataGrid ItemsSource="{Binding Source=