Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All

How Can I Pass DGV selected Checkbox Data to Another From DGV.

Here I use Code.. but From2 Show only one data.
From 1 Code :

dim Obj1 as New Form2
For i As Integer = 0 To DGVF1.Rows.Count - 1
If Convert.ToBoolean(DGVF1.Rows(i).Cells("SelectItem").Value) = True Then
Dim name As Object = DGVF1.Rows(i).Cells(0).Value
Obj1.SelectItemS = name
End If

Next I
obj1.show()


Form2 Code:

VB
Dim name As String = SelectItemS
            For i As Integer = 0 To DGVF2.Rows.Count - 1
                With Me.DGVF2.Rows(Me.DGVF2.Rows.Count - 1)
                    .Cells(1).Value = name
                End With
Posted

1 solution

OriginalGriff[^] has written some articles on passing data between forms ... see OriginalGriffs articles on CodeProject[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900