回答編集履歴
1
修正
answer
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Column1 は実際のカラム名に書き換えてください。
|
3
3
|
|
4
4
|
```VB.NET
|
5
|
-
Private Sub dvgTokuisaki_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Handles
|
5
|
+
Private Sub dvgTokuisaki_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Handles dvgTokuisaki.CellFormatting
|
6
6
|
Dim grid As DataGridView = CType(sender, DataGridView)
|
7
7
|
If grid.Columns(e.ColumnIndex).Name = "Column1" AndAlso TypeOf e.Value Is Integer Then
|
8
8
|
Dim value As Integer = CInt(e.Value)
|