There is a style

<Style TargetType="{x:Type DataGrid}"> <!-- бла бла бла --> <Setter Property="HeadersVisibility" Value="Column"/> <!-- бла бла бла --> </Style> 

Everything is fine, but sometimes when scrolling through a long DataGrid , a RowHeader and the entire row shifts slightly to the right. How to avoid this effect?

PS: The effect may appear immediately, and may not disturb for weeks. Wednesday VS 2012 pro (.net 4.5.51209)

  • Well, if this is a bug, then how would a bug. What version of WPF are you using? - VladD
  • .Net 4.5.51209, MVS (Pro) 2012 - Dmitry Chistik
  • Is there a newer studio nearby to double-check on it? - VladD
  • Tomorrow I find out about the availability of a license - Dmitry Chistik
  • @all Maybe someone with a fresh studio can double-check? - VladD

1 answer 1

Visual Studio 2015: under Windows 7, the bug does not appear, but under Windows XP - with might and main.

Solved by setting RowHeaderWidth = 0, taken from https://stackoverflow.com/questions/8683631/wpf-datagrid-row-header-visibility-error

  • in 7-ke for the year appeared a bug 2 times. I think this is a solution ... - Dmitry Chistik