using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace Bowin.Common.Utility { public static class DataTableCollectionExtension { /// /// 移除所有空行。 /// /// /// public static void RemoveAllEmpty(this DataTableCollection dataTableCollection) { if (dataTableCollection == null) { throw new ArgumentNullException("dataTableCollection"); } foreach (DataTable dt in dataTableCollection) { dt.Rows.RemoveAllEmpty(); } } } }