rectidy this accordian

Posted by Oswaldlily under ASP.NET on 8/12/2011 | Points: 10 | Views : 972 | Status : [Member] | Replies : 1
i HAVE gridviewINSIDE accordianpane..,
similarly i have 3 accordian pane..
if i click 1st pane gridview should display..
similarly for 2nd and 3rd..

I have written codebehin also,,
still not gettin..

<asp:Accordion ID="acc" runat="server" FadeTransitions="true"
SuppressHeaderPostbacks="true" RequireOpenedPane="false"
TransitionDuration="300" CssClass="rowHover"
" OnItemDataBound="acc_ItemDataBound"
Height="1094px"
Width="1202px">

<asp:AccordionPane ID="acc1" runat="server" TabIndex="0"><header>
<h2>Form Details</h2>
</header>
<content>
fv <asp:GridView ID="gv1" runat="server" AutoGenerateColumns="False">
<Columns>

<asp:TemplateField HeaderText="Customer name">
<ItemTemplate>
<asp:Label ID="lbl" runat="server"
Style="word-break: break-all; word-wrap: break-word;"
Text='<%#Eval("Name") %>' Width="200"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</content>
</asp:AccordionPane>

<asp:AccordionPane ID="acc2" runat="server" TabIndex="1"><header>
<h2>Form Details</h2>
</header>
<content>
fv <asp:GridView ID="gv2" runat="server" AutoGenerateColumns="False">
<Columns>

<asp:TemplateField HeaderText="Customer id">
<ItemTemplate>
<asp:Label ID="lbl2" runat="server"
Style="word-break: break-all; word-wrap: break-word;"
Text='<%#Eval("Id") %>' Width="200"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</content>
</asp:AccordionPane>

can u tell me what is codebehind here??




Responses

Posted by: Kunalverma31 on: 8/16/2011 [Member] Starter | Points: 25

Up
0
Down
do you want to access this accordian in code behind, Please elaborate.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response