How to color the gridlines of a datagrid column
Hi,
I have a datagrid filled with rows and columns
I have a one column that contains no data and thats has another color, gray
but for that one column it would be nice if I didn't see the gridlines of that column
so I want to
- give the gridlines of that specific column the same color as the column (gray)
or
-don't show the gridlines for that specific column.
any idea's ??
thanks in advance
Greetz
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Priya LingeRank #785 · 2.9K reputationPosted Nov 17, 2011, 3:28 AM EST
Please try this,
You can make GridLineVisibility="None" for tht column.
MainPage.xaml
GridLinesVisibility="None" >
Thanks.frans droomgans3 reputationPosted Nov 17, 2011, 4:01 AM EST
But if I place GridLinesVisibility="None" at datagrid, then i have never gridlines
i just want no gridlines for 1 specific column.
and the DataGridTextColumn doesn't have gridlinesvisibility ......
regards
Priya LingeRank #785 · 2.9K reputationPosted Nov 17, 2011, 7:49 PM EST
Yes, ur right there on such property(gridlinevisibility) for DatagridTextcolumn,this is only for whole datagrid.
So you want to hide tht gridline which occures on datagrid column you can use
Cell style of DataGridTextColumn as follow,Make cell of tht column gray as you want
Hope this will help you.
Thanks.