想象一下CListView呈现的新闻项的简单列表。每个新闻项都有一个'insertDate'属性,我可以通过$ data-> insertDate访问该属性。现在,这样的列表看起来像这样:
// example (how list is displayed now)
9-18-2012 - Stocks fell for 2nd week
9-18-2012 - Record heat for 2012
9-18-2012 - Crime down in the state
9-17-2012 - Stock woes are worrying investors
9-17-2012 - Business outlook is optimistic despite slow growth
9-16-2012 - More people moving into big cities
9-16-2012 - Stay ahead of the flu this year
我想要做的是在当天所有项目上方显示一个日期标题,以便显示看起来更像这样(下图)。有没有办法调整CListView来做到这一点?
// example of what i want to do
=======News for 9/18======
Stocks fell for 2nd week
Record heat for 2012
Crime down in the state
=======News for 9/17======
Stock woes are worrying investors
Business outlook is optimistic despite slow growth
=======News for 9/16======
More people moving into big cities
Stay ahead of the flu this year