我在 WPF 中定义了数据网格,但我无法在 DataGridTextColumn 和 DataGrid 中设置 IsReadOnly 属性
<dg:DataGrid SelectionUnit="FullRow" ColumnHeaderStyle="{StaticResource ColumnHeaderStyleByGiri}" ItemsSource="{Binding QueuedTradesCollection}" Margin="20"
AlternationCount="2" RowStyle="{StaticResource RowStyle}"
VerticalGridLinesBrush="#FFADD8E6"
HorizontalGridLinesBrush="#FFADD8E6" AutoGenerateColumns="False"
Grid.RowSpan="1" x:Name="grdvw_trades" CellStyle="{StaticResource CellStyle}">
<dg:DataGridTextColumn IsReadOnly="true" Header="Notional/PairOffAmount" Width="120" ElementStyle="{StaticResource RightAlignStyle}" SortMemberPath="Notional" DataFieldBinding="{Binding Notional,StringFormat={}{0:C}}"/>
我收到以下错误消息“无法设置属性 'DataGridColumn.IsReadOnly',因为它没有可访问的设置访问器”