Gridview标题行错乱
求助gridview标题行怎么变成这样了?怎么回复正常?程序代码:
<Columns> <asp:TemplateField HeaderText="编号"><HeaderStyle BorderWidth="50px" Height="30px" /><ItemTemplate><%#(Container.DataItemIndex+1) %></ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="name" HeaderText="用户名" ReadOnly="True" /> <asp:BoundField DataField="realname" HeaderText="姓名"> <HeaderStyle BorderWidth="60px" /> </asp:BoundField> <asp:BoundField DataField="department" HeaderText="部门"> <HeaderStyle BorderWidth="100px" /> </asp:BoundField> <asp:BoundField DataField="time" HeaderText="注册日期" ReadOnly="True" /> <asp:CommandField HeaderText="选择" ShowSelectButton="True"> <HeaderStyle BorderWidth="60px" /> </asp:CommandField> <asp:CommandField HeaderText="编辑" ShowEditButton="True"> <HeaderStyle BorderWidth="60px" /> </asp:CommandField> <asp:CommandField HeaderText="删除" ShowDeleteButton="True"> <HeaderStyle Width="60px" /> </asp:CommandField> </Columns> <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /> <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /> <PagerSettings Visible="False" /> <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /> <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /> <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /> <SortedAscendingCellStyle BackColor="#F4F4FD" /> <SortedAscendingHeaderStyle BackColor="#5A4C9D" /> <SortedDescendingCellStyle BackColor="#D8D8F0" /> <SortedDescendingHeaderStyle BackColor="#3E3277" /> </asp:GridView>[local]1[/local]