I coded the following to have a DGV Column header appear as specified.
What I got was this:Code:.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter .ColumnHeadersDefaultCellStyle.Font = New Font("Times New Roman", 11, FontStyle.Bold) .ColumnHeadersDefaultCellStyle.ForeColor = Color.Red .ColumnHeadersDefaultCellStyle.BackColor = Color.LightSteelBlue
So I have apparently done this wrong, but I am at a loss as to why the color and backcolor failed to execute.




Reply With Quote
