Professional Web Applications Themes

DataList inside a Grid Layout Panel (<DIV>) item layout problem - ASP.NET General

I'm using a DataList inside a Grid Layout Panel (which ends up being a <DIV>) so that I can use the overflow:scroll property. This is working fine, except for one anomaly: If there aren't enough items to cause an overflow, and scrolling, they get spaced evenly inside the <DIV>. So, one item appears in the middle of the area, two spread out with space on top, between, and bottom, etc. Finally, after adding enough to fill the area, the spacing and positioning is as I would prefer to see it. Is there a way to change this behavior so that ...

  1. #1

    Default DataList inside a Grid Layout Panel (<DIV>) item layout problem

    I'm using a DataList inside a Grid Layout Panel (which ends up being a
    <DIV>) so that I can use the overflow:scroll property. This is working fine,
    except for one anomaly: If there aren't enough items to cause an overflow,
    and scrolling, they get spaced evenly inside the <DIV>. So, one item appears
    in the middle of the area, two spread out with space on top, between, and
    bottom, etc. Finally, after adding enough to fill the area, the spacing and
    positioning is as I would prefer to see it.

    Is there a way to change this behavior so that the <DIV> simply fills in
    from the top?

    (Also - possible warning note: My first attempt at this consisted of cutting
    & pasting the DataList into the Grid Layout panel. This resulted in
    *trashing* the HTML for my page. I was able to recover, but sure wished I
    had picked the point just before I did that to check in the source....)


    Rick Guest

  2. #2

    Default RE: DataList inside a Grid Layout Panel (<DIV>) item layout problem

    You may change the DataList control's RepeatLayout to "Flow". When it is
    set to table, the item's layout will be arranged automatically.

    Luke

    "Microsoft Security Announcement: Have you installed the patch for
    Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
    you to review the information at the following link regarding Microsoft
    Security Bulletin MS03-026
    http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
    visit Windows Update at http://windowsupdate.microsoft.com to install the
    patch. Running the SCAN program from the Windows Update site will help to
    insure you are current with all security patches, not just MS03-026."

    MSFT Guest

  3. #3

    Default Re: DataList inside a Grid Layout Panel (<DIV>) item layout problem

    And, we have a winner <g>. Yes, this works!, and without making a mess of
    the formatting (I already had manually inserted a <BR> where I wanted a line
    break, anyway).

    Thanks.

    "MSFT" <microsoft.com> wrote in message
    news:phx.gbl... 
    to 


    Rick Guest

  4. #4

    Default Re: DataList inside a Grid Layout Panel (<DIV>) item layout problem

    This just controls whether the scroll bar(s) always appear (albeit grayed
    out) or not. Thanks. See my response to the MSFT comments by Luke.

    "Justin Dutoit" <com> wrote in message
    news:uf%phx.gbl... 
    > fine, [/ref]
    overflow, 
    > appears [/ref]
    and 
    > and 
    > cutting [/ref]

    >
    >[/ref]


    Rick Guest

Similar Threads

  1. Datalist Layout spacing problems, row space
    By NancyASAP in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: April 30th, 01:16 PM
  2. Grid Layout
    By Mepani in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: February 15th, 04:47 PM
  3. Panel Layout Sets not working in Fireworks MX 2004
    By Donnajr webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 2
    Last Post: September 25th, 11:58 PM
  4. Data Grid layout
    By Craig Hudson-Bennett in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: September 22nd, 06:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139