I've noticed with my DataGrid
in WPF that when I set SelectionMode="Extended"
, the horizontal scrolling becomes really patchy/weird. Some sort of 'select all' type button appears/disappears rapidly on the top left hand corner of the grid, and the headers & columns jump back and forth while scrolling. The scrollbar itself also jumps back and forth while scrolling. Scrolling does sort of work, but the behaviour while scrolling is really buggy looking.
I've noticed that if I set SelectionMode="Single"
then the problem disappears, but I'd like to use SelectionMode="Extended"
. This is the code for my datagrid:
<DataGrid x:Name="dataGrid" SelectionMode="Extended" SelectionUnit="Cell"
HeadersVisibility="Row,Column" RowHeaderWidth="0"
ItemsSource="{Binding ElementName=dataPager, Path=PageView}"
CanUserReorderColumns="False"
CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False">
Anyone know how to fix this issue? Thanks in advance!