Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
Field style settings not taking effect
posted

I have a style as below in a resource dictionary which I add to the resources of the user control hosting my xamdatagrid

<Style TargetType="{x:Type igDP:XamDataGrid}">
        <Setter Property="Background" Value="{StaticResource BackgroundBrush}" />
        <Setter Property="GroupByAreaLocation" Value="None" />
        <Setter Property="FieldSettings">
            <Setter.Value>
                <igDP:FieldSettings CellClickAction="SelectRecord"/>
            </Setter.Value>
        </Setter>
        <Setter Property="FieldSettings">
            <Setter.Value>
                <igDP:FieldSettings AllowEdit="False"/>
            </Setter.Value>
        </Setter>
       
    </Style>

The Background and group by area location properties apply fine, but neither of the field settings take effect. I've also tried creating a seperate style for field settings and having my xamdatagrid style use that, but it also doesn't work. The grid itself does not override any of these settings locally. Any idea what is going wrong?

 

Thanks

  • 69686
    posted

    Hello,

    I copy-pasted this style and all of the setters seemed to work correctly. There must be something else on your end. If you can put up a small project demonstrating the issue, we could look into this.