getting There is no row at position 2 error in datagridview

  • Thread starter Thread starter qasem90
  • Start date Start date
Q

qasem90

Guest
Hi

i keep getting this error msg {There is no row at position 2} when i try to add second row to datagridview and this is snip from my code

dgv_items.Rows.Add();
dgv_items.Rows.Add(DT10.Rows["ItemNo"], DT10.Rows["ItemAmtSold"], DT10.Rows["ItemWt"], DT10.Rows["ItemDiCt"], DT10.Rows["ItemDiNo"], DT10.Rows["ItemClCt"], DT10.Rows["ItemClNo"]);


Can any one help ?

Continue reading...
 
Back
Top