support DisplayFormat update in BeforeResults callback

this is useful if we want to manipulate DisplayFormat in extensions, e.g.
adding some columns automatically.
Merge branch '4.2/display-format-in-before-results-callback' into 4.2-trunk