set flexgrid.redraw = false prior to running your code, then true on completion