possibly fixed a problem with virtualfields in fields option of SQLFORM.grid, thanks peckto