Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to set background color in datagridview, using custom color.

for example: html tag color set to background color in datagridview.

Regards
Rajesh V
Posted
Updated 25-Feb-13 23:29pm
v3

Something like this:
C#
int RowIndex = 0; dataGridView1.Rows[RowIndex].DefaultCellStyle.BackColor = Color.Yellow;
 
Share this answer
 
Comments
Rajesh Vetrivel 26-Feb-13 5:55am    
I want to set Custom Color. please help me out.
 
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