You could try to use .represent.  I mean something a bit like this...

db.yourtable.yourfield.represent = lambda yourfield,row: XML(yourfield)
query = db....
grid = SQLFORM.grid(query.....)
return dict(grid=grid)

Hope it works!

Reply via email to