为什么我不能Text
在组合框上分配?它不可见:
<DataGridTemplateColumn Header="status">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock VerticalAlignment="Center" Text="{Binding name}" Width="130" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<ComboBox Text="111" Style="{DynamicResource ComboBoxStyle}" Height="Auto"
SelectionChanged="status_SelectionChanged"
Width="130">
.....etc.