Solved

Windows Forms Datagrid

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

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now