System.Windows.Forms.DataGridViewCell并不包含“value”的定义
privatevoidbutton7_Click(objectsender,EventArgse){doublescore=0;doublesum=0;for(inti=...
private void button7_Click(object sender, EventArgs e)
{
double score = 0;
double sum = 0;
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
score = dataGridView1.Rows[i].Cells[2].value;
sum+=score;
}
MessageBox.Show("+sum+"); 展开
{
double score = 0;
double sum = 0;
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
score = dataGridView1.Rows[i].Cells[2].value;
sum+=score;
}
MessageBox.Show("+sum+"); 展开
1个回答
展开全部
dataGridView1.Rows[i].Cells[2].Value // upperCase
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询