开发者

How do I add a horizontal scrollbar in a listview?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜