DataGrid and BindingGroup

Nov 3, 2009 at 1:02 AM

I tried to define bindingGroups in XAML like this:

<my:DataGrid AutoGenerateColumns="False" Margin="37,35,238,111" Name="dataGrid1">
            <my:DataGrid.BindingGroup>
                <BindingGroup.ValidationRules>
                    
                </BindingGroup.ValidationRules>
            </my:DataGrid.BindingGroup>
<my:DataGrid>

However VS tells me that the property "ValidationRules" was not found in type "BindingGroup". How can I define a BindingGroup for a dataGrid?