http://dotnet.aspx.cc/ShowDetail.aspx?id=A27CA611-2DE7-432D-8DBC-1512CEFDAA53

解决方案 »

  1.   

    把 <asp:DataGrid 标签中的 height 属性 和 style="" 中的 height栏式 删除就行了。
      

  2.   

    你把DataGrid的Height删掉,让它为空
    给你段代码
    asp:datagrid id="dgCounSys" runat="server" AutoGenerateColumns="False" CellPadding="3" BackColor="White"
                                BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC" Width="100%">
                                <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
                                <ItemStyle ForeColor="#000066"></ItemStyle>
                                <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
                                <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                <Columns>
                                    <asp:BoundColumn Visible="False" DataField="no" HeaderText="编号"></asp:BoundColumn>
                                    <asp:ButtonColumn DataTextField="no" HeaderText="编号" CommandName="Select">
                                        <ItemStyle Width="15%"></ItemStyle>
                                    </asp:ButtonColumn>
                                    <asp:BoundColumn DataField="title" HeaderText="标题">
                                        <HeaderStyle Width="55%"></HeaderStyle>
                                    </asp:BoundColumn>
                                    <asp:BoundColumn DataField="pubDate" HeaderText="制度年月">
                                        <ItemStyle Width="15%"></ItemStyle>
                                    </asp:BoundColumn>
                                    <asp:BoundColumn DataField="Releasename" HeaderText="发布人">
                                        <ItemStyle Width="15%"></ItemStyle>
                                    </asp:BoundColumn>
                                </Columns>
                            </asp:datagrid>