Hello Again
I'm trying to set the Column Header text alignment for two specific columns, using this code:
dgvBooks.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter dgvBooks.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
The code seems to have no effect. The index values are correct and no error is thrown, the property and the property "Enable HeadersVisualStyles" is set to False and the column index is correct.
Milt
DataGridViewContentAlignment.MiddleCenter
sirmilt