开发者

How do I add a horizontal scrollbar in a listview?

开发者 https://www.devze.com 2022-12-28 22:12 出处:网络
How do I ad开发者_StackOverflowd a horizontal scrollbar in a listview?You can wrap the ListView in a div with fixed height, something like this:

How do I ad开发者_StackOverflowd a horizontal scrollbar in a listview?


You can wrap the ListView in a div with fixed height, something like this:

<div style=" height:300px; overflow:scroll;">
        <asp:ListView ID="ListView2" DataSourceID="EmployeeOCDS" runat="server">
          <ItemTemplate>
            <tr>
            </tr>
          </ItemTemplate>
          <LayoutTemplate>
            <table id="itemPlaceholderContainer" runat="server" border="0" style="">
              <tr id="itemPlaceholder" runat="server">
              </tr>
            </table>
          </LayoutTemplate>
        </asp:ListView>
      </div>
0

精彩评论

暂无评论...
验证码 换一张
取 消