프로그래밍
[vb.net] 데이타 그리드뷰 선택셀 조인
프로세스 천국
2011. 11. 23. 23:48
별거 아닌데 까먹을거 같아서 여기에 백업.
TextBox6.Text = ""
Dim asdf As Boolean = True
Dim cell As DataGridViewCell
For Each cell In DataGridView1.SelectedCells
If Not asdf Then
TextBox6.Text += ", "
End If
TextBox6.Text += cell.Value.ToString()
asdf = False
Next
TextBox6.Text = ""
Dim asdf As Boolean = True
Dim cell As DataGridViewCell
For Each cell In DataGridView1.SelectedCells
If Not asdf Then
TextBox6.Text += ", "
End If
TextBox6.Text += cell.Value.ToString()
asdf = False
Next