DataGrid's Header Colors

M

Maqsood Ahmed

Hello,
I want to set DataGird's header fore and backcolors. The DataGrid or
TableStyle properties named HeaderForeColor and HeaderBackColor don't
work as they have some weird behavior.
Like ForeColor becomes HeaderBack color and If I set header backcolor it
does not have any affect. Can anyone tell me that how can I set header
fore/back color. How can this be achieved if Custom painting is the
answer.

Thanks in Advance.
Maqsood Ahmed [MCP C#,SQL Server]
Kolachi Advanced Technologies
http://www.kolachi.net
 
G

Guest

Hi;
Your comment is ??? how to work c# web form, windows form etc..

try it;
SampleDataGrid.Items[ Count].Cells[ CaseCount ].Style[ "BACKGROUND-COLOR" ]
= "#f0f8ff";
SampleDataGrid.Items[ Count].Cells[ CaseCount ].Style[ "Color" ] = "black";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top