ListView Height & Vertical Scrollbar

patrick

Well-known member
Joined
Dec 5, 2021
Messages
248
Programming Experience
1-3
Hello

In ListView , I want to set the height of the ListView to 300 and add a Vertical scrollbar.
In ListView , I want the height of the ListView to be 300 and add a vertical scrollbar.


Please Help Me.

I look forward to your help.


C#:
 <asp:ListView ID="listAssign" runat="server" Visible="true" height="300px">
      <LayoutTemplate>                                                                    
        <table id ="listAssignTable" border="0px" cellpadding="1" width="100" style="height:100px; overflow:scroll;">
          <tr>                                               
             <th>ORDER_ID</th>
                <th>PLAN_TIME</th>
                <th>PRODUCT_CODE</th>
                    </tr>
                       <tr id="itemplaceholder" runat="server"></tr>
                        </table>                                                    
                            </LayoutTemplate>
    </asp:ListView>
 
Last edited by a moderator:
You'll need to apply the correct CSS on the HTML controls. The links below might give you a starting point, but I recommend doing your own searches in Google.


or

 
You'll need to apply the correct CSS on the HTML controls. The links below might give you a starting point, but I recommend doing your own searches in Google.


or

Any other answers?

The answer you gave is not working.
please help me
 
Back
Top Bottom