数据移除的循环

经常忘记,随手记下来

1  for (int i = dt.Columns.Count-1; i >=0; i--)
2  {
3       dt.Columns.RemoveAt(i);
4  }

 

posted @ 2015-11-24 22:49  西瓜子儿  阅读(166)  评论(0编辑  收藏  举报