update 20241107
This commit is contained in:
@@ -85,6 +85,11 @@ namespace OnDoc.Helper
|
||||
}
|
||||
catch { return ""; }
|
||||
}
|
||||
|
||||
public static DataTable resort(DataTable dt, string colName, string direction)
|
||||
{
|
||||
dt.DefaultView.Sort = colName + " " + direction;
|
||||
dt = dt.DefaultView.ToTable();
|
||||
return dt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user