DataList Display Problem

  • Thread starter Thread starter beachboy
  • Start date Start date
B

beachboy

hello,

I have set "RepeatColumns" 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.
 
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!
 
Back
Top