for(int j=0;j<dg1.Items.Count;j++)
{
if(Int32.Parse(dg1.Items[j].Cells[5].Text.ToString())>3)
{
dg1.Items[j].Cells[5].Text="100";
}
else
{
dg1.Items[j].Cells[5].Text="95";
}
}
应该怎么改呢?
{
if(Int32.Parse(dg1.Items[j].Cells[5].Text.ToString())>3)
{
dg1.Items[j].Cells[5].Text="100";
}
else
{
dg1.Items[j].Cells[5].Text="95";
}
}
应该怎么改呢?
dg1.Items[j].Cells[5].Text.ToString())>
看是否有值和值是否是数字