Currently, I am in the process of optimizing a website to be responsive by utilizing master pages and content pages.
The responsiveness seems to work perfectly on pages that contain basic ASP.NET controls such as Textbox, Checkbox, and buttons.
However, I have encountered an issue where the responsiveness does not apply to pages that have a grid view bound.
Here is the code snippet I have inserted into both the master page and all aspx pages:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="HandheldFriendly" content="true">
In addition, below is the CSS code I have added in the stylesheet:
#main { width: auto; margin: auto;}
Attached are screenshots depicting the failure of the data grid to display responsively:
Image before resizing the browser window:
Image after resizing the browser window:
Should I make further alterations or include more stylesheets?
Thank you for your help.