Broken highlighted cells when scrolling with GridCellSelectionController

I am using the GridCellSelectionController so i can select individual cells:

        public MainWindow()
        {
            DataContext = new MainModel();
            InitializeComponent();


            Table2.SelectionController = new GridCellSelectionController(Table2);
        }

Here is my table configuration:

        <syncfusion:SfDataGrid Grid.Row="2"

                               Name="Table2"
                               LiveDataUpdateMode="AllowDataShaping"
                               ItemsSource="{Binding Path=Collection2}"
                               Columns="{Binding Path=Columns, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                               RowSelectionBrush="#55FFFF33"
                               EditorSelectionBehavior="SelectAll"
                               SelectionUnit="Row"
                               NavigationMode="Cell"
                               SelectionMode="Extended"
                               AllowDraggingColumns="True"
                               AllowResizingColumns="True">


            <syncfusion:SfDataGrid.SortColumnDescriptions>
                <syncfusion:SortColumnDescription ColumnName="Time" SortDirection="Descending"></syncfusion:SortColumnDescription>
            </syncfusion:SfDataGrid.SortColumnDescriptions>
        </syncfusion:SfDataGrid>

Steps to reproduce:

  1. Select a group of cells
  2. Scroll down
  3. There will be cells highlighted that weren't selected

See attached pictures

_image1.png

_image2.png

2 Replies 1 reply marked as answer

ZI Zia February 7, 2025 11:26 AM UTC

Just noticed, setting to the following will solve this:
SelectionUnit="Cell"


Marked as answer

SG Santhosh Govindasamy Syncfusion Team February 10, 2025 03:29 AM UTC

Hi Zia,

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.


Regards,
Santhosh.G


Loader.
Up arrow icon