C1Datagrid Change NewRow Background

Posted by: m.bleimuth on 3 October 2018, 2:05 am EST

    • Post Options:
    • Link

    Posted 3 October 2018, 2:05 am EST - Updated 4 October 2022, 12:14 am EST

    Hi,

    i how can I set the Rowbackground of the NewItemPlaceholder?

    I tried set a new NewRowStyle, but I have no idea which Targettype this Style is expecting.

    I have added a picture where you can see how my grid looks so far. I want to have

    the same background color as all the oder rows instead of white.

    KR Manuel

  • Posted 3 October 2018, 3:17 pm EST

    Hello,

    For setting the Background color for new row, just add Style to Window.Resources and set its TargetType to “c1:DataGridNewRowPresenter”, as follows:

        <Window.Resources>
            <Style TargetType="c1:DataGridNewRowPresenter">
                <Setter Property="Background" Value="Black"/>
            </Style>
        </Window.Resources>
    

    Thanks,

    Ruchir

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels