我有一个 DataGrid,我将 10 DataGridTextColumn 绑定到它。我添加了一个 CellEditEnding 来捕获编辑文本时的内容,以便我可以保存它。我想知道是否有可能只获得 CellEditEnding
<DataGridTextColumn Header="Notes" Binding="{Binding Path=Notes}".
这是数据网格
<DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="5"
BeginningEdit="OnBeginEdit"
CellEditEnding="OnEndEdit"
Name="dgActiveProblems"
CanUserAddRows="False"
CanUserDeleteRows="True"
AutoGenerateColumns="False"
SelectionMode="Single"
AlternatingRowBackground="BlanchedAlmond"
ItemContainerStyle="{StaticResource NormalRow}"
IsManipulationEnabled="True" >
<DataGridTextColumn Header="Notes" Binding="{Binding Path=Notes}" Width="*">
<DataGridTextColumn.EditingElementStyle>
<Style TargetType="TextBox">
<Setter Property="MaxLength" Value="255"/>
</Style>
</DataGridTextColumn.EditingElementStyle>
</DataGridTextColumn>