Hi, i am trying to add several rows to a dataview before bindng it to the datagridview. I have tried several variations of the below code but only the last row will actuall load into the grid. Probably doing something stupid. Any help will be appreciated.

My code is:

dvInspectDetail.AllowNew = True
Dim newRow1 As DataRowView = dvInspectDetail.AddNew
newRow1("IDetail") = mDetailNo.ToString
newRow1("IDDescr") = "Kiddi count = " & mKiddi
newRow1("IDRate1") = False
newRow1("IDRate2") = False
newRow1("IDRate3") = False
'newRow1.EndEdit()
Dim newRow2 As DataRowView = dvInspectDetail.AddNew
newRow2("IDetail") = mDetailNo.ToString
newRow2("IDDescr") = "Midi count = " & mMidi
newRow2("IDRate1") = False
newRow2("IDRate2") = False
newRow2("IDRate3") = False
'newRow2.EndEdit()
Dim newRow3 As DataRowView = dvInspectDetail.AddNew
newRow3("IDetail") = mDetailNo.ToString
newRow3("IDDescr") = "Maxi count = " & mMaxi
newRow3("IDRate1") = False
newRow3("IDRate2") = False
newRow3("IDRate3") = False
'newRow3.EndEdit()
Dim newRow4 As DataRowView = dvInspectDetail.AddNew
newRow4("IDetail") = mDetailNo.ToString
newRow4("IDDescr") = "Jumbo count = " & mJumbo
newRow4("IDRate1") = False
newRow4("IDRate2") = False
newRow4("IDRate3") = False
'newRow4.EndEdit()
Dim newRow5 As DataRowView = dvInspectDetail.AddNew
newRow5("IDetail") = mDetailNo.ToString
newRow5("IDDescr") = mComment
newRow5("IDRate1") = False
newRow5("IDRate2") = False
newRow5("IDRate3") = False
'newRow5.EndEdit()
MsgBox(dvInspectDetail.Count)

dgvInspectDetail.DataSource = dvInspectDetail

Many thanks in advance.

Alwyn