DataGridview specific cell back color

flashkid10

Member
Joined
Dec 9, 2016
Messages
16
Programming Experience
Beginner
I have a DadtaGridview that hold the name of events happening every day of the week (7 columens), and each of them has a different status which corresponds to a color. how do i set a specific backcolor or border of a specific cell?
 

JohnH

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
1,159
Location
Norway
Programming Experience
10+

JohnH

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
1,159
Location
Norway
Programming Experience
10+
The event is called one time for each cell in grid "every time each cell is painted". You decide based on ColumnIndex/RowIndex and/or cell value which BackColor to apply to each cell.
 
Top Bottom