タイトル : Re^9: DataGridViewの選択した行を取得して修正したいのですが。 投稿日 : 2007/09/03(Mon) 06:47 投稿者 : abi
For i As Integer = 0 To DataGridView1.SelectedCells.Count - 1 TextBox1.Text = DataGridView1.Rows(DataGridView1.SelectedCells(0).RowIndex).Cells(0).Value Next これで選択されたグリッドのデータが取得できますね。 |