728x90

C# 에서 사용하는 DataGridView의 폰트를 각각의 부분에 지정할수 있다.


// 전체적으로 폰트 적용하기
this.dataGridView1.Font = new Font("Tahoma", 10, FontStyle.Regular);

// Colum 의 해더부분을 지정하기
this.dataGridView1.ColumnHeadersDefaultCellStyle.Font = new Font("Tahoma", 10, FontStyle.Bold);

// Row 해더부분을 지정하기
this.dataGridView1.RowHeadersDefaultCellStyle.Font = new Font("Tahoma", 10, FontStyle.Bold);

// Cell 내용부분을 지정하기
this.dataGridView1.DefaultCellStyle.Font = new Font("Tahoma", 10, FontStyle.Bold);

블로그 이미지

Link2Me

,