Results 1 to 4 of 4

Thread: DataList: Repeated Columns Width...?

  1. #1

    Thread Starter
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551

    DataList: Repeated Columns Width...?

    Hey guys,

    I have a datalist and i have it set to .RepeatedColumns = 2... hence, it repeats in columns of 2... now this works perfect except for one thing... I can't seem to find a way to specify the widths of these columns!!

    i really need to make sure these columns are always equal in width... in other words, each column needs to have a width of 50%...

    any ideas of how i might go about this?

  2. #2
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175
    u can try it using tables inside your itemtemplate.

    for example
    Code:
    <itemtemplete>
       <table width=200px></table>
    </itemtemplete>
    this way its easy to make a layout and i allways use the repeatestyle parameter. Set it to table

  3. #3

    Thread Starter
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    well, i can't set the table width in pixels... so i have it set in percentage (different browsing resolutions need me to have it as a percentage, because pixels doesn't look right)...

    also, i just tried actually implicitly setting the RepeatedLayout property, and to my surprise it seems to have forced it to stay half and half.. which is weird since the default repeatedlayout is already table..


    but i have a feeling this isn't very concrete... anybody come across any other ways? thanks for the response!

  4. #4

    Thread Starter
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    and on another note, i have a situation where this attempt isn't working at all.. the one column is like 3 times as wide as the other... :/

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