日期:2014-05-18 浏览次数:20830 次
for (int c = 5; c <= 14; c++) { if (e.Button == MouseButtons.Left && f.listGrid.Col == c) { Sift frmSift = new Sift(); DataTable dt = new DataTable(); dt.Columns.Add("编号"); dt.Columns.Add("姓名"); dt.Columns.Add("Mark1"); dt.Columns.Add("Mark2"); dt.Columns.Add("Mark3"); for (int r = f.listGrid.Rows.Fixed; r <= f.dataGrid.Rows.Count; r++) { Int32 qh = Convert.ToInt32(f.listGrid[r, 1]); Int32 w = Convert.ToInt32(f.listGrid[r, 2]); Int32 q = Convert.ToInt32(f.listGrid[r, 3]); Int32 b = Convert.ToInt32(f.listGrid[r, 4]); if (f.listGrid.GetCellImage(r, c) != null) { DataRow dr = dt.Rows.Add(); dr["编号"] = f.listGrid[r, 0]; dr["姓名"] = xm; dr["Mark1"] = m1; dr["Mark2"] = m2; dr["Mark3"] = m3; } } frmSift.siftData(dt); frmSift.ShowDialog(); } }