Beispiel #1
0
 public static DataTable GetDistinctValues(DataTable dt, IEnumerable<string> names)
 {
     DataTableDistinct dtDistinct = new DataTableDistinct(dt);
     dtDistinct.SelectColumns(names);
     dtDistinct.CreateDistinctValues();
     return dtDistinct.CreateDistinctValuesDataTable();
 }
Beispiel #2
0
        public static DataTable GetDistinctValues(DataTable dt, IEnumerable <string> names)
        {
            DataTableDistinct dtDistinct = new DataTableDistinct(dt);

            dtDistinct.SelectColumns(names);
            dtDistinct.CreateDistinctValues();
            return(dtDistinct.CreateDistinctValuesDataTable());
        }