RE: Sections in repeater



Hi,

That's a good idea to hide the sections after the data binding is
completed. You just need to enumerate the repeater item and check if the
section text is identical to previous one. Since Repeater doesn't have an
event called DataBound, I think this can be done right after you called
Repeater.DataBind().

Let me know if you need more info on this.

Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Unable to get the child control in repeater when first page load
    ... If you use DataSourceID property for automatic data binding, data binding occurs after the Page_Load and you cannot see any items. ... On the PostBack state of repeater is restored from the ViewState and you can access these items. ... another custom control in repeater, which inherit the label control, ... But if when the page is loaded for the first time, custom label does ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: force viewstate to clear on OnCommand event
    ... Since Repeater is designed to be used with data binding, I'm afraid it's ... not possible to remove an individual RepeaterItem from Items without ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: finding child controls of Repeater
    ... Data binding in ASP.NET is one-way binding, ... In Search Of ASP.NET Controls ... >I have a repeater object which is bound to a dataset, ... >need a way to loop through or ref the child controls of the repeater, ...
    (microsoft.public.dotnet.framework.aspnet)

Loading