|
-
Dec 2nd, 2002, 12:58 PM
#1
Thread Starter
Fanatic Member
Datalist/datagrid formatting??
I would like to contain a datgrid control in a box with a vertical scrollbar.
Is this possible and if so how?
Thanks in Advance
-
Dec 2nd, 2002, 03:01 PM
#2
Addicted Member
-
Dec 3rd, 2002, 06:11 AM
#3
Thread Starter
Fanatic Member
Basically I dont want the controls to expand.
I want them to be constrained to a particular size. If the control needs to be larger than I would want scroll bars to appear.
-
Dec 3rd, 2002, 04:07 PM
#4
Use a stylesheet with the following CSS CLASS:
.restrictHeight{height:250px; overflow: scroll}
Wrap the DIV with and ASP:Panel and set the CSS-CLASS of the panel to restrictHeight
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Dec 3rd, 2002, 04:33 PM
#5
Junior Member
There's probably quite a few ways to do this, but I often do things like this by creating my content (such as your grid) on a separate document a reference it in an IFrame. It just helps me keep separate items "separate". But Lord_Rat's method is probably a bit more proper.
-
Dec 3rd, 2002, 05:57 PM
#6
The problem with IFRAMEs are that you now limit your customer base to IE only.
In general, I tend not to care much about non-IE people, but that's because I create solutions for the Intranet, not the Internet and so I know who my customers are and I have the liberty of telling them that IE is the only way.
On the occasion that I create pages for external use, I try to make sure that I don't program IE only. The advantage to .Net is that it will do this for you, if you use it right. That means no IFRAMEs (or DIV's or LAYERs).
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|