Removing of WPF SfDataGrid Row Indicator

In order to change the SfDataGrid row indicator, I noticed this in the documentation:

https://help.syncfusion.com/wpf/datagrid/rows#change-the-current-row-indicator

However, I'm looking to remove the row indicator completely upon row selection. Following the above example, I can comment out the following section and the row indicator does not appear which achieves the desired result.

<!--<DiscreteObjectKeyFrame.Value>
    <Geometry>F1M-218.342,2910.79L-234.066,2926.52 -233.954,2926.63 -225.428,2926.63 -210.87,2912.07 -206.495,2907.7 -225.313,2888.88 -234.066,2888.88 -218.342,2904.6 -259.829,2904.6 -259.829,2910.79 -218.342,2910.79z</Geometry>
</DiscreteObjectKeyFrame.Value>-->

But, using the example at the link provided is a LOT of XAML to achieve this, which just bloats the code base.

I'm wondering if anyone knows of a simpler way to remove the row indicator completely from the WPF SfDataGrid either in XAML or C#.

Thanks.


1 Reply

SB Sweatha Bharathi Syncfusion Team March 5, 2024 03:58 PM UTC

Hi Stoked ,


In WPF, there is no direct support for removing the SfDataGrid row indicator icon in C# (code-behind).


To achieve the styling to show the row indicator icon, , we use templates in XAML. If you want to remove the row indicator icon, you should override the style templates and remove the path in the XAML page.


Loader.
Up arrow icon