[web2py] Re: SQLFORM.grid and fields: suppress columns in the grid

2016-05-24 Thread Martin Weissenboeck
Thank you, Anthony! I have found the same solution after reading the source code. Maybe this tip is worth making mention of it in the book? 2016-05-24 17:16 GMT+02:00 Anthony : > Rather than using the "fields" argument, to suppress a field in the grid, > just set its "readable" attribute to Fals

[web2py] Re: SQLFORM.grid and fields: suppress columns in the grid

2016-05-24 Thread Anthony
Rather than using the "fields" argument, to suppress a field in the grid, just set its "readable" attribute to False (before creating the grid): db.t1.bb.readable = False grid = SQLFORM.grid(db.t1) Anthony On Tuesday, May 24, 2016 at 8:44:53 AM UTC-4, mweissen wrote: > > Let's say I have table