Solved

Windows Forms Datagrid

Posted on 2014-02-25
2
162 Views
Last Modified: 2014-02-26
I need to change forecolor of datagrid rows and i use this code:

DgvDocumentos.Rows(i).DefaultCellStyle.ForeColor = Color.Red

But i need tune some colors, it´s possible use hex colors something like:

DgvDocumentos.Rows(i).DefaultCellStyle.ForeColor = Color("FFFF0000")
0
Comment
Question by:rflorencio
2 Comments
 
LVL 40
ID: 39886731
DgvDocumentos.Rows(i).DefaultCellStyle.ForeColor = Color.FromArgb(&HFFFF0000)
0
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39886769
Hi rflorencio;

No, but you can use this syntax:

DgvDocumentos.Rows(i).DefaultCellStyle.ForeColor = Color.FromArgb(255, 255, 0, 0)

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question