How to disable white vertical line in the datagrid header row? #4166
Unanswered
CSHubbardCF
asked this question in
Q&A
Replies: 1 comment
-
I found the solution after looking into the template. It turns out that the setter that was creating the vertical line was "MahApps.Styles.Thumb.ColumnHeaderGripper" being used inside the "DataGridColumnHeader"'s "Template" property. I imported both the "Template" tag into my override ResourceDictionary as well as the MahApps.Styles.Thumb.ColumnHeaderGripper which I renamed to "CustomColumnHeaderGripper" and customized.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've spent hours at this point looking for the property that is creating this vertical white line.
I've searched all over "https://github.com/MahApps/MahApps.Metro/blob/develop/src/MahApps.Metro/Styles/Controls.DataGrid.xaml"
trying to find the correct property to overwrite in my custom resource dictionary to remove this vertical line and have had absolutely no luck.
It is definitely not the border as I've made that large and green in the picture for emphasis sake. Ive tried "VerticalGridLinesBrush", as well as "Separator". Different setters in both the DataGridColumnHeader as well as the DataGrid and
DataGridRowHeader. At this point I have a feeling its buried somewhere in the "template" of DataGridColumnHeader but I thought to as here before diving into that.
Thank you for any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions