header等都有height 属性,都设置一下就行了

解决方案 »

  1.   

    <asp:datagrid
    id=datagrid1
    runat=server
    height=400
    width=100%
    backcolor=#ffffff
    backimageurl=1.jpg
    cellspacing=1
    cellpadding=0
    >
    <itemstyle font-size=9pt/>
    <columns>
    <asp:boundcolumn
    itemstyle-width=20%
    itemstyle-height=30px
    />
    </columns>
    </asp:datagrid>
      

  2.   

    <asp:DataGrid id="mydg" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute; TOP: 96px" runat="server"
    AutoGenerateColumns="False" Width="488px" Height="400px">
      

  3.   

    直接到asp.net的.ASPX里面去改他的高度就是了很简单的。<asp:datagrid
    id=datagrid1
    runat=server
    height=400
    width=100%
    backcolor=#ffffff
    backimageurl=1.jpg
    cellspacing=1
    cellpadding=0
    >
    <itemstyle font-size=9pt/>
    <columns>
    <asp:boundcolumn
    itemstyle-width=20%
    itemstyle-height=30px
    />
    </columns>
    </asp:datagrid>