Posted on: 7/23/2015 10:07:43 PM | Views : 862

asp:GridView is not taking any width adjustments. I tried all width adjustments and still the column is the width of the content in the cell. The test data is 4 characters, but I want the column width to be 200px for both columns titled Bank2 and Class2. I changed the column titles so I know the columns are able to change, just the widths won't change. Why?
<asp:GridView ID="GridViewFunding" runat="server" DataSourceID="dsFundingSource" DataKeyNames="FundingID" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="Vertical"> <AlternatingRowStyle BackColor="WhiteSmoke" /> <Columns> <asp:CommandField ShowEditButton="True" ControlStyle-Width="40px"> <HeaderStyle Width="40px" /> </asp:CommandField> <asp:BoundField DataField="BANK_CODE" HeaderText=&quo ...

Go to the complete details ...