Use auto type for grid create function