No option to show as grid for custom doctype

I created a doctype in a custom app and module for erpnext. I am trying to create a web form to allow data entry.

However, I am unable to find the option to “Show as Grid”. I only have these options:

I also tried changing the .json file for the doctype but no luck.
Can someone help me, please?