How do I add a horizontal scrollbar to a list?

How do I add a horizontal scrollbar to a list?

+2


a source to share


1 answer


You can wrap the ListView in a fixed height div, 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>

      

+4


a source







All Articles