Fixes the issue of AutoGeneratedButtonsField that causes inline edit in the grid.