Same code, fetches only 1st row for me in this project..

When i apply it in another project, just a few renames, it gives me -1 in first row, 1st column !!

I can post the code used in both projects, to compare !!

How can i work upon it ??

This is what i am getting...

The code is same what i mentioned before and even mentioning below, again..

Public Class SelectedBom

    Private Sub SelectedBom_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'HemDatabase1DataSet4.partno' table. You can move, or remove it, as needed.
        'Me.PartnoTableAdapter.Fill(Me.HemDatabase1DataSet4.partno)

        Dim count As Integer = 0

        For j As Integer = 0 To BOM.dgv1.RowCount - 1

            If BOM.dgv1.Rows(j).Cells(0).Value = True Then

                Dim ro As New DataGridViewRow
                DataGridView2.Rows.Add(ro)

                For i As Integer = 0 To BOM.dgv1.ColumnCount - 1
                    Me.DataGridView2.Rows(count).Cells(i).Value = BOM.dgv1.Rows(j).Cells(i).Value
                Next

                count += 1

            End If

        Next

    End Sub
End Class

I am not even getting that !! Just -1 in the 1st row of 1st column..

Can u suggest me how should i proceede ??

Please..

hi there i am working with the same problem..
well i just want to ask how did you display the value of the content of your datagrid on the next form when you clicked it..

shann1718
please open a new thread for ur problem.. please do not post into someone else thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.