Ok, this is weird. I've actually seen tonnes of people having this problem... and yet I still haven't been able to find the solution!
Basically, I am trying to set the column width of a particular column on a gridview. No matter what I do, setting word wraps to false, changing the column width of every element I can find it just won't set to a particular size (see code below). I tried doing it in code also in the page_load event (grdOnlineQueries.Columns(
le.Width = 100) and still nothing. Tried changing the headerstyle and autogeneratecolumns = false and anything else I could find... and nothing.
So, some suggestions seem to be that it has something to do with the CSS file. But, I don't think I have a CSS file? Or am I missing something. This is a stylesheet or something right?
Anyway, any ideas?
<asp:BoundField DataField="Date/Time" HeaderText="Date/Time" SortExpression="Date/Time">
<ItemStyle Width="100px" Wrap="False" />
<ControlStyle Width="100px" />
<HeaderStyle Width="100px" Wrap="False" />
<FooterStyle Width="100px" Wrap="False" />