Click here to Skip to main content
15,923,015 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am developing a pathology management system in C# . i need code for change the color of font retailed to result due to higher range and low rang value of singel grid cell.
Posted
Comments
vinodkumarnie 21-Mar-13 3:24am    
More explanations..

1 solution

In grid row databound event you can check values & change color for cell values using below code
int columnIndex = 1;
int rowIndex = 2;
// create bold font based on the default font
Font newFont = new Font(dataGridView1.Font, FontStyle.Bold);
dataGridView1[columnIndex, rowIndex].Style.Font = newFont;
 
Share this answer
 

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