回答編集履歴

1

コードを追加

2016/08/31 03:12

投稿

alg
alg

スコア2019

test CHANGED
@@ -5,3 +5,21 @@
5
5
  ![デザイナー](a03fc101c1c2238bbb3f9486b93d3bb6.png)
6
6
 
7
7
  ![CellStyle ビルダー](16467fcf9157ae883639444711146930.png)
8
+
9
+
10
+
11
+ デザイナーではなくコードで、ということでしたら、こんな感じでしょうか。
12
+
13
+ (デザイナーが自動生成したコードの抜粋ですが)
14
+
15
+
16
+
17
+ ```vb.net
18
+
19
+ Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
20
+
21
+ DataGridViewCellStyle1.Font = New System.Drawing.Font("MS UI Gothic", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(128, Byte))
22
+
23
+ Me.DataGridView1.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle1
24
+
25
+ ```