I try to work around the bug i reported that textbox with accept return does not work in data grid. Looking into the data grid code I see that key events are not processes if the handled is set to true. So I thought I wrap my textbox in a grid and call set handled=true in the grids keydown event.
This indeed prevents the data grid from processing, but now I can only enter backspace in my text cell ! As far as I understand events bubble UP not down as it is possible in WPF. From debug I can see that the TextBox key down event is indeed fired BEFORE the Grids key down event. So why can't I enter text ?
<data:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<Grid KeyDown="Grid_KeyDown"><TextBox AcceptsReturn="True" x:Name="tbColumn0" Text="{Binding Description, Mode=TwoWay}"
Style="{StaticResource TextBoxDescription}" />
</Grid>
</DataTemplate>
</data:DataGridTemplateColumn.CellEditingTemplate>
private void Grid_KeyDown(object sender, KeyEventArgs e)
{
e.Handled = true;
}
Joe Robe