Skip to content

DataGrid Column Header Background color

arun kumar

Asked Feb 19, 2009, 6:59 AM EST1 answer
Share
LinkedInX
Hi

Does any one know how to change the back ground color of individual column header in a datagrid. I know how to change the background color of all the column headers but not individuallly...

Example - I want my column 1 header to be displayed Red and Column 2 header to be displayed Green

Thanks in advance

Any idea??

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    <yourGrid>.Column(index).HeaderCell.Style.BackColor=Color.<yourColor>
    0