Changing color of a column in a datagrid.

U

UJ

How can you change the background color for a single column in a datagrid. I
can figure out how to do it for the entire row (e.item.backcolor = ....) but
how do I do it for a single column?

TIA - Jeff.
 
G

Guest

I would use the property builder of the data grid
<HeaderStyle BackColor="Green"></HeaderStyle>
<ItemStyle BackColor="Green"></ItemStyle>
<FooterStyle BackColor="Green"></FooterStyle>
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top