本文介绍了难以降低窗体中网格视图的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1难以降低gridview的高度,如何在下面的代码中更正它。



2.我需要创建一个新的gridview,它将直接坐在当前哪个坐标上我从下面的代码复制









1 having difficulty reducing the height of a gridview, how do I correct it in the codes below.

2. I need to create a new gridview which will sit directly on the current which coordinates do I replicate from the codes below




<div style="height: 100px">
                  <asp:GridView ID="GridView1" runat="server" AllowPaging="True"

                      AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"

                      Height="10px" onselectedindexchanged="GridView1_SelectedIndexChanged1"

                      PageSize="8" Width="754px">
                      <Columns>
                          <asp:CommandField ShowSelectButton="True" />
                          <asp:BoundField DataField="IDNO" HeaderText="IDNO" SortExpression="IDNO" />
                          <asp:BoundField DataField="ID_CODE" HeaderText="ID_CODE"

                              SortExpression="ID_CODE" />
                          <asp:BoundField DataField="CUSTOMER" HeaderText="CUSTOMER"

                              SortExpression="CUSTOMER" />
                          <asp:BoundField DataField="APPRS_NO" HeaderText="APPRS_NO"

                              SortExpression="APPRS_NO" />
                          <asp:BoundField DataField="INT_NO" HeaderText="INT_NO"

                              SortExpression="INT_NO" />
                          <asp:BoundField DataField="INT_NAME" HeaderText="INT_NAME"

                              SortExpression="INT_NAME" />
                      </Columns>
                  </asp:GridView>
                  <asp:SqlDataSource ID="SqlDataSource1" runat="server"

                      ConnectionString="<%$ ConnectionStrings:Credit_AppConnectionString12 %>"

                      SelectCommand="SELECT [IDNO], [ID_CODE], [CUSTOMER], [APPRS_NO], [INT_NO], [INT_NAME] FROM [LOANS] ORDER BY [IDNO]">
                  </asp:SqlDataSource>
              </div>

推荐答案



这篇关于难以降低窗体中网格视图的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 13:02