记录DataGird的整行数据之和及动态创建列后赋值和
摘要:
List<string> num = new List<string>(); try { for (int i = 0; i < DataGrid1.Rows.Count - 1; i++) { double aa = 0; for (int j = 1; j < DataGrid1.Columns.Count; j++) { double bb = Convert.ToDouble(DataGrid1.Rows[i].Cells[j].Value); aa += bb; } num.Add(aa.ToString()); } } catch (Except 阅读全文
posted @ 2011-06-02 18:23 悟生慧 阅读(244) 评论(0) 推荐(0) 编辑