Hi all

I have a simple usercontrol with a datagrid on it bound to an observablecollection of my objects with iDataErrorInfo implemented. I validate entry and am highlighting invalid records but now want to disable a "save all" button on the mainwindow hosting my usercontrol if the usercontrols grid contains error.

I have created a dependancy property on the usercontrol and am looking to set this boolean property when the datagridrow has failed validation. Can someone tell me how tp reference my property in my style? The following is what I have:

Code:
        <Style x:Key="RowStyle" TargetType="{x:Type DataGridRow}">
            <Style.Triggers>
                <Trigger Property="Validation.HasError" Value="true">
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush" Value="Red"/>
                    <Setter Property="ToolTip"
              Value="{Binding RelativeSource={RelativeSource Self},
                     Path=(Validation.Errors)[0].ErrorContent}"/>
                    <Setter Property="ControlHasErrors" Value="True"></Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
ControlHasErrors is my dependancy property, I've tried setting the targetname but get error that not valid in a setter????????

Cheers for any assistance.