خرید بک لینک

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

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

صفحه بندی