Click here to Skip to main content
15,918,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using dataGridView Control in an application.

In that 2 Columns are DataGridViewLinkCell.
Others are Text Style.

I want to change the Fore Color of the CellLink Cell Wise.
Means, if Back Color of CellLink is Green, the CellLink Fore Color Should be White.

Can Anyone Help Me.

thanks,
lakshman
Posted

1 solution

To set fore Color
you can use given Syntax

ColumnName.LinkColor = Color.ColorName // Syntax


ColumnName is the Name of Column( Your LinkLabel Column) and ColorName is the Name of Color as you wish.
 
Share this answer
 
Comments
Dalek Dave 31-Oct-10 10:38am    
Good call.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900