c# - How to display gridview inside Multi view? -
i want display gridview inside multi view. have tried given below code. not displaying on design. me find solution. thank you.
source:
<asp:multiview id="multiview1" runat="server" > <asp:view id="view1" runat="server"> <asp:table id="table2" runat="server" borderwidth="1" width="973px" height="595px"> <asp:tablerow> <asp:tablecell> <br /> <asp:gridview id="gridview1" runat="server" autogeneratecolumns="false"> <columns> <asp:boundfield datafield="id" headertext="sl no" readonly="true" sortexpression="id" /> <asp:boundfield datafield="name" headertext="name" readonly="true" sortexpression="name" /> </columns> </asp:gridview> <br /> </asp:tablecell> </asp:tablerow> </asp:table> </asp:view> </asp:multiview>
you need use findcontrol property , find gridview in multiview bind data gridview
Comments
Post a Comment