Argument exception on datagridview.rows.add() but no error when debugging in c# winforms

ساخت وبلاگ

Vote count: 0

I have encountered this weird scenario when i added rows to datagridview from a retrieved list, it gives an Argument Exception. But when I debugged it, adding breakpoint to the statement of adding rows to datagridview, I received no error at all. Can someone help me with this? Thanks.

foreach (AcctgData row in this.currentTransaction.AcctgDataList) { //this.dgvCommon.Update(); this.dgvCommon.Rows.Add(row.Model, row.Parts.ToString(), (row.PreProduction) == '1' ? true : false, row.InGoodUnits, row.InReplace, row.InOthers, (row.InGoodUnits + row.InReplace + row.InOthers), row.OutNextGroup.ToString(), row.InGoodUnits, row.OutDefect, row.OutOther, (row.InGoodUnits + row.OutDefect + row.OutOther), row.PoolingInProcess, row.CompletedUnits, row.OthersInProcess, (row.PoolingInProcess + row.CompletedUnits + row.OthersInProcess), row.Remarks.ToString() );
}
asked 44 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 374 تاريخ : پنجشنبه 31 تير 1395 ساعت: 14:00