Changing DataGridView Header Cells' Text Alignment And The Font Size
foreach(DataGridViewColumn col in dgvBreakDowns.Columns){
col.HeaderCell.Style.Alignment=DataGridViewContentAlignment.MiddleCenter;
col.HeaderCell.Style.Font=newFont("Arial",12F,FontStyle.Bold,GraphicsUnit.Pixel);}
No comments:
Post a Comment