tag:blogger.com,1999:blog-8263949408347549596.post1811334781179970350..comments2023-10-23T23:19:01.111+02:00Comments on Object-Oriented Software Development: The Controls collection cannot be modified because the control contains code blocks (i.e. )Wiktor Zychlahttp://www.blogger.com/profile/04420514974154487039noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8263949408347549596.post-19161607301633560832011-02-16T16:36:54.376+01:002011-02-16T16:36:54.376+01:00Nice one :)Nice one :)Nishanoreply@blogger.comtag:blogger.com,1999:blog-8263949408347549596.post-53790055785627340192008-06-24T13:05:00.000+02:002008-06-24T13:05:00.000+02:00Thank you! Works fine!Thank you! Works fine!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8263949408347549596.post-77640671512556595492008-05-08T11:29:00.000+02:002008-05-08T11:29:00.000+02:00You could also try extending the listview and impl...You could also try extending the listview and implementing the following method:<BR/><BR/>protected override void CreateLayoutTemplate()<BR/>{<BR/> base.CreateLayoutTemplate();<BR/><BR/> if (this.Controls.Count == 1)<BR/> this.Controls[0].DataBind();<BR/>}<BR/><BR/>This allows you to use databinding syntax within the LayoutTemplate (which seems less of a hack).Anonymousnoreply@blogger.com