Solved

Windows Forms Datagrid

Posted on 2014-02-25
2
161 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

809 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