September 5th, 2012, 07:19 AM
I have a datagridview (DgvProductDet) it has 5 columns (data bounded)
Buy Now (Button Click)
I have another dagaridview (DgvSelectedItems) it has 4 columns (data unbounded)
What I want to achieve is that when the Buy Now (Button Click) which is at the end of each row is clicked, the details of that row are populated on the other datagridview (DgvSelectedItems)..
How can I achieve this please?
September 6th, 2012, 06:00 PM
this is my first post here, so check this twice
I hope this is what you want.
Private Sub DgvProductDet_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DgvProductDet.CellClick
If e.ColumnIndex = 4 Then
Dim param(3) As Object
For i As Integer = 0 To 3
param(i) = DgvProductDet.Rows(e.RowIndex).Cells(i).Value
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!