Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to give datagrid header rows color in vb.net 2010
Posted

1 solution

To make any changes on header row, you need to modify the the cell style of DataGridView. This link below explains it in detail: http://msdn.microsoft.com/en-us/library/ddtce152.aspx[^]


It would be something like this:
C#
DataGridViewCellStyle columnHeaderStyle = new DataGridViewCellStyle();
columnHeaderStyle.BackColor = Color.Aqua;
 
Share this answer
 
v2

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