Results 1 to 6 of 6

Thread: Datalist/datagrid formatting??

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Wink 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

    Parksie

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    Box? What kind of box?
    ~Ryan





    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    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.

    Parksie

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    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)

  5. #5
    Junior Member
    Join Date
    May 2002
    Posts
    20
    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.

  6. #6
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    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
  •  



Click Here to Expand Forum to Full Width