Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何缩小数据网格的大小?_Asp.net_Vb.net_Textbox - Fatal编程技术网

Asp.net 如何缩小数据网格的大小?

Asp.net 如何缩小数据网格的大小?,asp.net,vb.net,textbox,Asp.net,Vb.net,Textbox,我正在开发一个VB.NET应用程序,它将数据返回到DataGrid。除了一件事,现在一切正常。我希望我的DATAGRID下面所有空白空白都不出现,这样用户就不用担心向下滚动页面了。 目前,它正确地显示了DataGrid,带有一个滚动条,这个网格占据了我显示器的一半高度。但是在这个格子下面有很多空白。我怎样才能去掉它 以下是我的ASPX文件的结尾: <head> <title></title> <style typ

我正在开发一个VB.NET应用程序,它将数据返回到DataGrid。除了一件事,现在一切正常。我希望我的DATAGRID下面所有空白空白都不出现,这样用户就不用担心向下滚动页面了。 目前,它正确地显示了DataGrid,带有一个滚动条,这个网格占据了我显示器的一半高度。但是在这个格子下面有很多空白。我怎样才能去掉它

以下是我的ASPX文件的结尾:

    <head> 
        <title></title>
        <style type="text/css">
            .DataGridFixedHeader {background-color: #336699; color:White; font-weight: "bold"; position:relative; top:expression(this.offsetParent.scrollTop);}
            #txtFind{     width:150;     padding:5px;     outline:none;     height:20px; } 
            .focusField{     border:solid 2px #73A6FF;     background:#EFF5FF;     color:#000; } 
            .idleField{     background:#EEE;     color: #6F6F6F;     border: solid 2px #DFDFDF; }
        </style>        
    </head>
    <body>  
        <form runat="Server" defaultbutton= "btnFind" method="post" id="Form1">
            <div style="font-size:18pt; font-family:verdana; font-weight:bold; color:#336699">
               Parts Watch List
            </div>
            <hr style="font-weight: bold; font-size: 20pt; color:#000080;" />
            <div style="height: 380px; text-align: center; position: static;">              
                <input id="part_transfer" type="hidden" runat="server"/>
                <input id="part_desc_transfer" type="hidden" runat="server"/>                               
                <asp:Panel id="Panel1" runat="server" HorizontalAlign = "Center">
                       <span style="font-weight: bold; text-align: left; font-size: 15pt;">
                            Calculation:</span><br />
                        Reliability Rate &nbsp;=&nbsp; 1 - ( number of failed parts in the last 6 months / Part Multiplier * Average instrument Census in the last 6 months),<br />
                        Where
                        <br />
                        Number of failed parts - Summation of failures of a part for a 6 month period<br />
                        Part Multiplier - Number that represents how many times a part is used on the intrument<br />
                        Average instrument census -&nbsp; Average of the instrument census for the same
                        6 month timeframe as failed parts<br />
                        <br />
                        &nbsp; &nbsp; &nbsp; 
                        Please choose one of the parts below to view the control charts.</p>
                </asp:Panel>
                <asp:Panel id="Panel2" runat="server" Visible="false">
                    <chart:WebChartViewer id="WebChartViewer1" runat="server" HorizontalAlign="Center" />
                </asp:Panel>
            </div>
            <hr style="width: 90%; position: static;" />

            <div style="text-align: center; position: static; ">
                <asp:Label id="CensusLastUpdate" runat="server"/><br />
                <asp:Button id="btnExport" runat="server" Text="Export to Excel"></asp:Button>
                <asp:CheckBox id="check1" Text="Display Only Parts Below Threshold" TextAlign="Right" AutoPostBack="True" OnCheckedChanged="ReRun_Main" runat="server" />
                <br />
                <asp:TextBox ID="txtFind" Text="Enter Part Number" runat="server" />
                <asp:Button ID="btnFind" Text="Search" runat="server" OnClick="SearchTable"  />
            </div> 

            <% Dim scrollPosURL As String = "../includes/ScrollPos.htc"%>
            <input id="saveScrollPos" type="hidden" runat="server" name="saveScrollPos"/>

            <table border="0" cellspacing="0" align="center" style="" > 
                <tr>  
                    <td> 
                        <div style="OVERFLOW: auto; HEIGHT: 400px; vertical-align: top; ">  
                            <ASP:DATAGRID ID="dgTable" HorizontalAlign="Center" runat="server" AutoGenerateColumns="False" ShowHeader="True" OnItemDataBound="DataGrid1_ItemDataBound">
                                <AlternatingItemStyle BackColor = "#eeeeee" />
                                <HEADERSTYLE CssClass="ms-formlabel DataGridFixedHeader" /> 
                                <COLUMNS>

                                    <ASP:BOUNDCOLUMN HEADERTEXT="PN" DATAFIELD="PART_NUM" READONLY="true" ItemStyle-Width="130px" ItemStyle-Font-Size="8"/>
                                    <ASP:BOUNDCOLUMN HEADERTEXT="PART_DESC" DATAFIELD="PART_DESC" READONLY="true" ItemStyle-Width="150px" ItemStyle-Font-Size="8"/>
                                    <ASP:BOUNDCOLUMN HEADERTEXT="numFailed" DATAFIELD="NUM_FAILED" READONLY="true" ItemStyle-Width="150px" ItemStyle-Font-Size="8"/>
                                    <ASP:BOUNDCOLUMN HEADERTEXT="AvgCensus" DATAFIELD="AVG_CENSUS" READONLY="true" ItemStyle-Width="150px" ItemStyle-Font-Size="8"/>
                                    <ASP:BOUNDCOLUMN HEADERTEXT="PartMultiplier" DATAFIELD="PartMultiplier" READONLY="true" ItemStyle-Width="150px" ItemStyle-Font-Size="8"/>
                                    <ASP:BOUNDCOLUMN HEADERTEXT="ReliabilityRate" DATAFIELD="RELIABILITY_RATE" READONLY="true" ItemStyle-Width="105px" ItemStyle-Font-Size="8"/>
                                    <ASP:BOUNDCOLUMN HEADERTEXT="PRIORITY" DATAFIELD="PRIORITY" READONLY="true" Visible="False" ItemStyle-Width="0px" ItemStyle-Font-Size="8"/> 
                                    <ASP:BOUNDCOLUMN HEADERTEXT="Criticality" DATAFIELD="Criticality" READONLY="true" ItemStyle-Width="105px" ItemStyle-Font-Size="8"/>
                                </COLUMNS>              
                            </ASP:DATAGRID>
                        </div>
                    </td>
                </tr>
            </table>
        </form>       
        <!-- Javascript at the bottom for fast page loading --> 
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary --> 
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.1.js" type="text/javascript"></script> 
<script type="text/javascript">    window.jQuery || document.write('<script src="js/libs/jquery-1.6.1.js">\x3C/script>')</script> 

<!-- Scripts concatenated --> 
<script src="js/plugins.js" type="text/javascript"></script> 
<script src="js/script.js" type="text/javascript"></script> 
<!-- End scripts --> 

    </body>
</html>

.DataGridFixedHeader{背景色:#336699;颜色:白色;字体重量:“粗体”;位置:相对;顶部:表达式(this.offsetParent.scrollTop);}
#txtFind{宽度:150;填充:5px;轮廓:无;高度:20px;}
.focusField{边框:实心2px#73A6FF;背景:#EFF5FF;颜色:#000;}
.idleField{背景:#EEE;颜色:#6F6F6F;边框:实心2px#DFDFDFDF;}
零件观察表

计算:
可靠性率=1-(过去6个月的故障零件数量/零件乘数*过去6个月的平均仪器普查),
哪里
故障零件数量-6个月内零件故障的总和
零件乘数-表示零件在仪器上使用次数的数字
平均仪器普查-相同仪器普查的平均值 故障零件的6个月时间范围

请选择下面的一个部分来查看控制图




window.jQuery | | document.write('\x3C/script>'))
减小它所在的DIV上的样式高度(当前设置为400px)。

减小它所在的DIV上的样式高度(当前设置为400px)。

谢谢,我尝试了,但没有解决它。所有这些都缩小了我的数据网格的高度。但所有的空白都保留了下来。还有其他想法吗?谢谢我试过了,但这并没有解决问题。所有这些都缩小了我的数据网格的高度。但所有的空白都保留了下来。还有其他想法吗?