scroll just a section of a table

HLRosenberger used Ask the Experts™
Is there a way to scroll just a section of a table?  So, I have 20 rows in a table.   I want to scroll rows 8 through 12.  I also want the rows above and below the scrolling area to stay aligned vertically.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
maybe this will help.

Public Class Form1
   Private Sub Form1_Load(sender As Object, e As EventArgs) _
      Handles MyBase.Load
      'create two scroll bars
      Dim hs As HScrollBar
      Dim vs As VScrollBar
      hs = New HScrollBar()
      vs = New VScrollBar()
      'set properties
      hs.Location = New Point(10, 200)
      hs.Size = New Size(175, 15)
      hs.Value = 50
      vs.Location = New Point(200, 30)
      vs.Size = New Size(15, 175)
      hs.Value = 50
      'adding the scroll bars to the form
      ' Set the caption bar text of the form.  
      Me.Text = ""
   End Sub
End Class

Open in new window

John BhattManager
You can put that table inside a div element and then set height for div.
Let's have a look at below code

 <div style="height: 400px; overflow: auto" align="center">
<table border="1">

Open in new window

Get an example of Live working demo here.


thanks for the feedback,

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial