Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > table with a scrollbar?

Reply
Thread Tools

table with a scrollbar?

 
 
PJ6
Guest
Posts: n/a
 
      08-17-2005
I have a user control (HTML table) within a table. Would it be possible to
cause the user control to scroll its conents when its container is too
small, or will I just have to make its height = 100% so it can't cause its
container to resize too big?

Paul


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      08-17-2005
You can put your table (or any control) into a fixed size area by putting it
in a scrollable div such as this:

<div id="Layer1" style="position:relative;width:350px;height:200px; overflow:
scroll;">control goes here</div>

The key is to use the "overflow" CSS attribute.Here's more info:
http://www.w3schools.com/css/pr_pos_overflow.asp

Another option is to put your control in an IFrame.
http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"PJ6" <> wrote in message
news:%...
>I have a user control (HTML table) within a table. Would it be possible to
>cause the user control to scroll its conents when its container is too
>small, or will I just have to make its height = 100% so it can't cause its
>container to resize too big?
>
> Paul
>



 
Reply With Quote
 
 
 
 
PJ6
Guest
Posts: n/a
 
      08-17-2005
Thanks, that's exactly what I was looking for.

Paul

"Steve C. Orr [MVP, MCSD]" <> wrote in message
news:...
> You can put your table (or any control) into a fixed size area by putting
> it in a scrollable div such as this:
>
> <div id="Layer1"
> style="position:relative;width:350px;height:200px; overflow:
> scroll;">control goes here</div>
>
> The key is to use the "overflow" CSS attribute.Here's more info:
> http://www.w3schools.com/css/pr_pos_overflow.asp
>
> Another option is to put your control in an IFrame.
> http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://SteveOrr.net
>
>
> "PJ6" <> wrote in message
> news:%...
>>I have a user control (HTML table) within a table. Would it be possible to
>>cause the user control to scroll its conents when its container is too
>>small, or will I just have to make its height = 100% so it can't cause its
>>container to resize too big?
>>
>> Paul
>>

>
>



 
Reply With Quote
 
Robbe Morris [C# MVP]
Guest
Posts: n/a
 
      08-18-2005
You may also find this useful. Freeze columns and rows
like Excel but in your html table:

http://www.eggheadcafe.com/articles/...er_control.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#

Earn money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp



"PJ6" <> wrote in message
news:%...
>I have a user control (HTML table) within a table. Would it be possible to
>cause the user control to scroll its conents when its container is too
>small, or will I just have to make its height = 100% so it can't cause its
>container to resize too big?
>
> Paul
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
exchange routes between global IP routing table and VRF routing table zher Cisco 2 11-04-2004 11:28 PM
Tying up Port Login table entries with Port Table Entries in CISCO SNMP John Ramsden Cisco 0 07-24-2004 04:03 PM
Difference between routing-table and forwarding-table Joachim Krais Cisco 2 11-23-2003 02:52 PM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57