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.

        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

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

                count += 1

            End If


    End Sub
End Class
Attachments Ss3.jpg 51.69 KB

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

Can u suggest me how should i proceede ??


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..

Edited by shann1718: n/a


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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.