質問するログイン新規登録

回答編集履歴

1

修正

2017/04/10 09:13

投稿

Zuishin
Zuishin

スコア28675

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 DataGridView1.CellFormatting
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)