Rows.Add(newrow). The error occurs on the line where dt.NewRow() is used. The problem occurs when the datatable (and the datagrid) is empty.
確定! 回上一頁