回答編集履歴
1
コードを追加
test
CHANGED
@@ -5,3 +5,21 @@
|
|
5
5
|

|
6
6
|
|
7
7
|

|
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
|
+
```
|