Esempio n. 1
0
 private DataSet1.recordDataDataTable sortBy(DataSet1.recordDataDataTable table, string column_name)
 {
     DataRow[] drarray;
     drarray = table.Select("", column_name);
     DataSet1.recordDataDataTable newTable = new DataSet1.recordDataDataTable();
     for (int i = 0; i < drarray.Length; i++)
     {
         newTable.Rows.Add(drarray[i].ItemArray);
     }
     return newTable;
 }
Esempio n. 2
0
 private DataSet1.recordDataDataTable filterTable(DataSet1.recordDataDataTable table, string expression)
 {
     DataSet1.recordDataDataTable newTable = new DataSet1.recordDataDataTable();
     DataRow[] drarray;
     drarray = table.Select(expression);
     for (int j = 0; j < drarray.Length; j++)
     {
         newTable.Rows.Add(drarray[j].ItemArray);
     }
     return newTable;
 }