Private Sub DataGridView1_CellDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
DataGridView2.Rows.Clear()
For iRow = 0 To DataGridView1.Rows.Count - 1
Dim row As String() = New String() {DataGridView1.Rows(iRow).Cells(4).Value, DataGridView1.Rows(iRow).Cells(5).Value, DataGridView1.Rows(iRow).Cells(6).Value}
DataGridView2.Rows.Add(row)
Next
End Sub
รบกวนผู้รู้หน่อ่ยครับ
Tag : .NET
Date :
2019-01-25 12:12:17
By :
1639518442828154
View :
686
Reply :
1
No. 1
Guest
Code (VB.NET)
Private Sub DataGridView1_CellDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
DataGridView2.Rows.Add(DataGridView1.Rows(e.RowIndex).Cells(4).Value, _
DataGridView1.Rows(e.RowIndex).Cells(5).Value, _
DataGridView1.Rows(e.RowIndex).Cells(6).Value)
End Sub