Private Sub DataGridView1_CellContentDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentDoubleClick
Dim f As New EntryForm
f.ControlButton.Text = "更新"
f.modeselect = CommonConst.MODE.UPDATE
If DataGridView1.CurrentRow Is Nothing Then
Exit Sub
Else
Dim table As DataTable = DataGridView1.DataSource
Dim RowsSelect As Integer = DataGridView1.CurrentRow.Index
f.bangumiCd = DataGridView1(14, RowsSelect).Value
f.ShowDialog()
End If
End Sub
上記のコードでやってみたのですがカラムをダブルクリックすると選択されている行のデータを持ってきてしまいます。カラムヘッダダブルクリックしたときはデータは持ってこないようにしたいのですがどうしたらいいでしょうか?
先ほど似たような投稿しましたができたと思ったのですができていなかったので再質問いたします。
よろしくお願いします
回答1件
あなたの回答
tips
プレビュー