Hi Stephen,
Trey is right, there is no way to change the code within Methods on the fly. The best option I can think of for you would be to define the grid classes beforehand with the Methods filled in differently, and then when you need to 'rebuild' your grid, just destroy the one that's there, and create a new one based on the proper class. I don't know if this is realistic to do within your specifications, but I thought I'd put it out there for you.
Paul A. Busbey
Victoria Insurance