Do you need something like in this post:
Changes required in grid code …
$opt["sortname"] = 'ABS(diff)';
// you can provide custom SQL query to display data
$g->select_command = " SELECT *, DATEDIFF(`invdate`, CURDATE()) AS diff FROM `invheader`";
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?