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
Priya LingePosted Nov 18, 2011, 12:49 AM
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.
frans droomgansPosted Nov 17, 2011, 9:01 AM
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 LingePosted Nov 17, 2011, 8:28 AM
Please try this,
You can make GridLineVisibility="None" for tht column.
MainPage.xaml
GridLinesVisibility="None" >
Thanks.