| タイトル | : Re^4: DataGridViewで選択されたセルの列名を取得したい |  
| 記事No | : 4209 |  
| 投稿日 | : 2006/09/06(Wed) 16:05 |  
| 投稿者 | : KEN  |  
 いつも大変お世話になっております。
  DataGridView_CellEndEditイベントで考えていたとおりの処理が実装できました。 ありがとうございました。 ソースは以下のようになりました。
      Private Sub DataGridView_CellEndEdit(ByVal sender As System.Object, ByVal e As System .Windows.Forms.DataGridViewCellEventArgs) Handles DgvSisyo.CellEndEdit
            Select Case DataGridView.Columns(DataGridView.CurrentCell.ColumnIndex).HeaderText             Case "FIELD1"                 '必須入力チェック                 If DataGridView.CurrentCell.Value.ToString = "" Then                     MsgBox("未入力")                 End If         End Select
      End Sub 
 
 |