change the datagrid row text color

G

Guest

Hi there!

I need to change the datagrid row text color, but I don't know how can I do
it?

Anithing are wellcome!

Marcus Vinícius
 
B

Ben Lucas

On your Datagrid, you need to change the ForeColor property of the ItemStyle
property. For example if your DataGrid is named dg:

dg.ItemStyle.ForeColor = Color.Black;

--
Ben Lucas
Lead Developer
Solien Technology, Inc.
www.solien.com

"Marcus Vinícius M. Montezano"
 

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