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
240
Remove the border when grid is disable
posted

Hello,

Is anyone know how to remove the border around the cell when we set the dataGrid.IsEnable to false?

I also attached the picture to more describe what I mean :).

Thanks

Vera

 

 

Parents
  • 69686
    Suggested Answer
    posted

    Hello Vera,

    To remove these borders, you would have to create a style for the Editor. For example:

     

    <Style TargetType="{x:Type igEditors:ValueEditor}">

                        <Style.Triggers>

                            <Trigger Property="IsEnabled" Value="False">

                                <Setter Property="BorderThickness" Value="0"/>

                            </Trigger>

                        </Style.Triggers>

                    </Style>

    I can see on the screenshotthat you are using a theme, so make sure you have put that style in the XamDataGrid Resources section. If the style is not there it would not be picked up, because of the Theme.

    Hope this helps,
    Alex. 

     

Reply Children
No Data