I am having a strange problem with an Accordian control which is databound to a DataView. Each pane displays data about a person. The problem is that when a new person is added which sorts to one of the inner panes, it initially displays the content (but not the header) of the pane following.
For example, if there are two panes, one for Andy and one for Mary, and I add a new person named Bill, then the headers will be Andy, Bill and Mary, as expected. But expanding Bill will show the info for Mary. Both Andy and Mary display the correct data. If I leave the page and return, all displays correctly.
I have stepped through the code, listed below, and verified to my satisfaction that when I rebind the control, the data in the underlying datatable and dataview is correct.
Here is the declaration of the Accordian control:
<cc1:Accordion ID="accPeople" runat="server" Width="400px" Height="100" TransitionDuration="1" AutoSize="None" RequireOpenedPane="false" SelectedIndex="-1" ContentCssClass="AccCntnt" HeaderCssClass="AccHdr" HeaderSelectedCssClass="AccHdrSlctd"> <HeaderTemplate> <table > <tr>
View Complete Post