DataGrid: DataBinding in CellStyle and New Item

Jan 6, 2010 at 11:34 AM
Edited Jan 6, 2010 at 11:36 AM

I'm applying a cell style that includes some databinding. Something like this:

<Style x:Key="CellStyle" TargetType="{x:Type wtk:DataGridCell}">
            <Setter Property="ToolTip" Value="{Binding Hint}" />

It seems to work but I keep getting these errors in the output window:

System.Windows.Data Error: 39 : BindingExpression path error: 'Hint' property not found on 'object' ''Object'...

I guess this happens when the style is applied to the new item.

Does anyone know how to avoid these?