?
Solved

Windows Forms Datagrid

Posted on 2014-02-25
2
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40
ID: 39886731
DgvDocumentos.Rows(i).DefaultCellStyle.ForeColor = Color.FromArgb(&HFFFF0000)
0
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

771 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