日期:2014-05-17 浏览次数:21011 次
int[] ar = new int[dtResult.Rows.Count]; for (int i = 0; i < dtResult.Rows.Count; i++) { if (dtResult.Rows[i][0].ToString() =="0") { ar[i] = i; } } for (int num=ar.Length-1; num > -1 ;num-- ) { dtResult.Rows[num].Delete(); }