【发布时间】:2018-06-16 10:24:09
【问题描述】:
请帮忙告诉我我做错了什么?
//For Only visible Rows After Filtering
for(int i=0; i< DGScores.DataGridView.Rows.Count-1;i++)
{
Int32 M1Val=Convert.ToInt32(DGScores.DataGridView.Rows[i].Cells["M1Val"].Value);
Int32 ScoreType=Convert.ToInt32(DGScores.DataGridView.Rows[i].Cells["ScoreType"].Value);
string StudentCode=DGScores.DataGridView.Rows[i].Cells["StudentCode"].Value.ToString();
if(!Convert.IsDBNull(DGScores.DataGridView.Rows[i].Cells["M1Val"].Value))
{
if( ScoreType==2 && M1Val >=0 )
{
MessageBox.Show("نمره مستمر اول برای "+StudentCode);
}
}
}
【问题讨论】: