0

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'には、アクセス可能なセットアクセサーがないため、設定できません。」

4

1 に答える 1

1

WPF TOOLKIT 2008を使用しましたが、IsReadonlyプロパティはWPFデータグリッドにのみ存在します。

于 2012-10-19T04:30:13.023 に答える