DataList Display Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • beachboy

    #1

    DataList Display Problem

    hello,

    I have set "RepeatColu mns" on myDataList = 5, if the reminder of itemdata is
    not multiple of 5.. e.g: only have 3 items. then the display will break...
    any method i can solive this and add empty columns if the output is less
    than 5?

    Thanks in advanced.


  • Nathan Sokalski

    #2
    Re: DataList Display Problem

    Yes, simply add extra elements to the Collection or rows to the DataTable
    (depending on what you use as the DataSource). If necessary, you can add
    code to the ItemDataBound event to hide these extra elements or rows.
    However, the basic concept is to add extra elements or rows to the
    DataSource so that the DataList creates the correct number of columns. If
    you would like any help adding this to your code, feel free to ask. Good
    Luck!
    --
    Nathan Sokalski
    njsokalski@hotm ail.com


    "beachboy" <jpsteambun@yah oo.com.hkwrote in message
    news:%23DBXrGlp GHA.4188@TK2MSF TNGP03.phx.gbl. ..
    hello,
    >
    I have set "RepeatColu mns" on myDataList = 5, if the reminder of itemdata
    is
    not multiple of 5.. e.g: only have 3 items. then the display will break...
    any method i can solive this and add empty columns if the output is less
    than 5?
    >
    Thanks in advanced.
    >
    >

    Comment

    Working...