WPF DataGrid: Make cells readonly
Posted
by crauscher
on Stack Overflow
See other posts from Stack Overflow
or by crauscher
Published on 2010-03-23T19:47:11Z
Indexed on
2010/03/23
20:03 UTC
Read the original article
Hit count: 1009
I use the following DataGrid
<DataGrid Grid.Row="1" Grid.Column="1" Name="Grid" ItemsSource="{Binding}" AutoGenerateColumns="False" >
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Width="100" Binding="{Binding Path=Name}"></DataGridTextColumn>
<DataGridTextColumn Header="OldValue" Width="100" Binding="{Binding Path=OldValue}"></DataGridTextColumn>
<DataGridTextColumn Header="NewValue" Width="100*" Binding="{Binding Path=NewValue}"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
How can I make the cells readonly?
© Stack Overflow or respective owner