This code need to be added after grid initialization code on problematic page ( where you have incorrect initial focus )