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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top