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.
 
Ad

Advertisements

G

Guest

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

Advertisements


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