custom grid working