0
DataTable dt = new DataTable();
DataRow[] dr = (DataTable)dsData.Tables[0].Select("Some Criteria");
dt = (DataTable)dsData.Tables[0].clone();
dt.Rows.Add(dr); //line causing the error
上面的代碼中加粗線拋出一個錯誤如下如何從datarow數組加載數據表?
"Unable to cast object of type 'System.Data.DataRow' to type
'System.IConvertible'.Couldn't store in pipelinesubstatusid Column.
Expected type is Decimal."
你可以幫我解決這個問題