请问有人知道如何删除WPF DataGrid中最后一列中不存在的行?还有如何移除最后一行多余的行?
这是我的XAML代码:
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="30" />
</WindowChrome.WindowChrome>
<Border BorderBrush="#FF333333" BorderThickness="1">
<DataGrid Name="ParametersConfigGrid"
AutoGenerateColumns="False"
Loaded="ParametersConfigGrid_OnLoaded">
<DataGrid.Columns>
<DataGridTextColumn Header="Order" Binding="{Binding Order}" />
<DataGridTextColumn Header="Parameter Name" Binding="{Binding ParameterName}" />
<DataGridTextColumn Header="Designation" Binding="{Binding Designation}" />
</DataGrid.Columns>
</DataGrid>
</Border>
谢谢!