难以降低窗体中网格视图的高度 [英] having difficulty reducing the height of gridview in a form

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

问题描述

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>

推荐答案

ConnectionStrings:Credit_AppConnectionString12 %>

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


您确定问题,制定方式,值得解决吗?我对此表示怀疑。



如果高度有问题,请查看您的UI设计和样式,比如介绍分页。永远不要为了凝聚视图而牺牲可读性(这本身可能是好的;它取决于)。永远记住,用户不希望一次看到太多信息。



-SA
Are you sure the problem, the way you formulated it, worth resolving? I doubt it.

If the height is the problem, review your UI design and styling, say, introduce paging. Never sacrifice readability for the sake of condensed view (which itself could be good; it depends). Always remember that the user does not want to see too much information at once.

—SA


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆