DataGridViewに表示したデータを取得したくて取得したのですが、Columnを選択すると1番上のデータが取得できてしまいます。これを改善したいのですがどうしたらいいでしょうか?
Private Sub DataGridView1_CellDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
Dim f As New EntryForm
f.ControlButton.Text = "更新" f.modeselect = CommonConst.MODE.UPDATE Dim table As DataTable = DataGridView1.DataSource If DataGridView1.CurrentRow Is Nothing Then Exit Sub End If Dim RowsSelect As Integer = DataGridView1.CurrentRow.Index f.bangumiCd = DataGridView1(14, RowsSelect).Value f.ShowDialog()
end sub
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。