ASP.NET GridView Set Width of Column ItemStyle-Width and HeaderStyle-Width suggest a width to the browser, but if your grid is too wide to fit on the page, certain browsers such as IE8 will compress the column (ignoring your width) to reduce scrolling. The workaround I found was to put a block-style span in the header: HeaderText="<span style='display: block; width: 110px'>My Column</span>" This will widen your column for you.
Created By: amos 1/12/2011 1:08:24 PM Updated: 1/12/2011 1:08:31 PM
|
|