有没有办法隐藏WPF DataGrid的行详细信息?我只想显示数据网格中的行。
谢谢
<DataGrid ItemsSource="{Binding Path=oExtrationMasterList}" RowHeaderWidth="0" x:Name="DataGridMaster" AreRowDetailsFrozen="True" HorizontalAlignment="Left" Margin="15,128,0,0" VerticalAlignment="Top" Height="199" Width="614" AutoGenerateColumns="False" SelectionChanged="DataGridMaster_SelectionChanged" RowDetailsVisibilityMode="Collapsed">
<DataGrid.Columns>
<DataGridTextColumn Header="ID" Width="30" Binding="{Binding TransactionDate}" Visibility="Hidden" />
<DataGridTextColumn Header="Transaction Date" Width="*" Binding="{Binding TransactionDate}" />
<DataGridTextColumn Header="Transaction Count" Width="*" Binding="{Binding TransactionCount}" />
</DataGrid.Columns>
</DataGrid>