How to set the background color of the part at the right side of Column headers.

Dec 10, 2008 at 10:46 AM
Edited Dec 10, 2008 at 10:51 AM
I know that DataGrid is made up by a 3x3 grid.
I want to how to change the backround color of the part at the right side of Column headers and the above of vertical Scrollbar, which is at location Grid.Row 0, Grid.Column 2.
That's it, the part at the top right part of DataGrid when the vertical scrollbar is displayed as following images shows.

Dec 10, 2008 at 1:21 PM

 I subscribe to this, 

Thank you,
Dec 10, 2008 at 9:34 PM

(Column 2, Row 0), (Column 0, Row 2) and (Column 2, Row 2) are empty in the default template of the DataGrid. Which means they have the same Background of its parent control because Grid by itself is transparent. One way of setting background color on them is to set Background on DataGrid....

    <dg:DataGrid Background="Red" ... />

Note: This affects all the above mentioned three regions.

If the above solution is not satisfactory then the only way seems to be to retemplate DataGrid, put some controls in these grid areas and set Backgrounds on those controls appropriately.
Dec 11, 2008 at 6:06 AM
Thank you.