FluentLight SfDataGrid No border on the Cell selected

Hi,

I would like to have no borders on the selected cell in the DataGrid. I have tried following the advice in the forum post " No border on the Cell selected | WPF Forums | Syncfusion". But it has not worked with FluentLight Theme. It still has a white border on the cell.


I have reproduce the work as attached.

Can you give the right operation ?

Thanks and Best Regards,


Attachment: SfDataGridSelect_a948b61d.zip

1 Reply

VS Vijayarasan Sivanandham Syncfusion Team August 4, 2022 05:30 PM UTC

Hi Nguyen Thanh Dat,

Your requirement to have no borders on the selected cell when the FluentLight theme is applied in SfDataGrid can be achieved by setting the CurrentCellBorderVisibility property as Collapsed in GridCell. Please refer to the below code snippet,


<syncfusion:SfDataGrid.Resources>

                <Style TargetType="syncfusion:GridCell">

                    <Setter Property="CurrentCellBorderVisibility" Value="Collapsed" />

                </Style>

</syncfusion:SfDataGrid.Resources>


Please find the modified sample in the attachment and let us know if you have any concerns in this.


Regards,

Vijayarasan S


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Attachment: ModifiedSample_80511a5c.zip

Loader.
Up arrow icon