how I can show the sum of in a datagridview column?

后端 未结 8 1525
日久生厌
日久生厌 2020-11-27 05:46

I need to show the sum of the count column from this datagridview, but I don\'t know how I can get to the data in the datagridview.

When I

8条回答
  •  囚心锁ツ
    2020-11-27 06:38

    //declare the total variable
    int total = 0;
    //loop through the datagrid and sum the column 
    for(int i=0;i

提交回复
热议问题