Same as codekaizen but simpler:
<DataGridTextColumn>
<DataGridTextColumn.CellStyle>
<Style>
<Setter Property="UIElement.IsEnabled" Value="{Binding IsEditable}" />
</Style>
</DataGridTextColumn.CellStyle>
</DataGridTextColumn>
More Related Contents:
- Binding in a WPF data grid text column
- How to get ToolTip from WPF Data Grid Column Header (DataGridTemplateColumn) in code?
- ResourceDictionary in a separate assembly
- In WPF, what are the differences between the x:Name and Name attributes?
- When creating a new GUI, is WPF the preferred choice over Windows Forms? [closed]
- Best way to hide a window from the Alt-Tab program switcher?
- My images are blurry! Why isn’t WPF’s SnapsToDevicePixels working?
- Access parent DataContext from DataTemplate
- Apply stroke to a textblock in WPF
- Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)
- There is no ListBox.SelectionMode=”None”, is there another way to disable selection in a listbox?
- In MVVM model should the model implement INotifyPropertyChanged interface?
- BitmapImage in WPF does lock file
- Replacing the WPF entry point
- How can I read/write app.config settings at runtime without using user settings?
- How to set and change the culture in WPF
- Lazy loading WPF tab content
- Going fullscreen on secondary monitor
- CLIPBRD_E_CANT_OPEN error when setting the Clipboard from .NET
- DataTrigger not firing
- WPF TextBox won’t fill in StackPanel
- How do You Create a Read-Only Dependency Property?
- Concatenate strings instead of using a stack of TextBlocks
- How does ItemContainerGenerator.ContainerFromItem work with a grouped list?
- How to prevent a new WPF form from stealing focus?
- How to implement Balloon message in a WPF application
- Create guitar chords editor in WPF (from RichTextBox?)
- How do I bind a Byte array to an Image in WPF with a value converter?
- Validate data using DataAnnotations with WPF & Entity Framework?
- WPF DataGrid CustomSort for each Column