CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Posts
    1,828

    Repeater Control

    Is there any way I can bound data inside a repeater and display it Horizontally instead of vertically? If not can it be achieved in DataList??

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: Repeater Control

    It depends on the item template inside the repeater. You can make it a DIV with style= float:left
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  3. #3
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Repeater Control

    Basically - you, yourself, define what HTML to use in a Repeater, which is the strong point with repeaters.
    As suggested by the poster above, you can simply write the HTML (a div, and float) in your item template, and that's what will be printed out per item.

    A thing to remember when printing horizontal, however, is make sure your content can fit on the page, and be sure to handle breaking of the lines in case content becomes too wide.

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

Featured