foreach (DataRow drRow in dt.Rows)
{
DataRow dr = dtNew.NewRow();
if (drRow[2] != DBNull.Value)
{
dr["date_dt"] = Convert.ToDateTime(drRow[0]);
dr["datavalue_n"] = Convert.ToDouble(drRow[2]) * Convert.ToDouble(dtSelectedRows.Rows[iRow][3]);
dtNew.Rows.Add(dr);
}
else
{
objGlobalUIMethods.MsgShow("eMsg", "Series have missing value.");
}
}
{
DataRow dr = dtNew.NewRow();
if (drRow[2] != DBNull.Value)
{
dr["date_dt"] = Convert.ToDateTime(drRow[0]);
dr["datavalue_n"] = Convert.ToDouble(drRow[2]) * Convert.ToDouble(dtSelectedRows.Rows[iRow][3]);
dtNew.Rows.Add(dr);
}
else
{
objGlobalUIMethods.MsgShow("eMsg", "Series have missing value.");
}
}
No comments:
Post a Comment