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

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top