asp.net - ASP Table overlap to next column -
asp.net - ASP Table overlap to next column -
i'm having problem layout of table. can see in screenshot there grid view within gridview. illustration see has 3 grid views main 1 , 1 in both table. set description in cost 2 column , remove 3th gridview. can guys help me find solution allow sec table overlap next column?
thanks
http://img43.imageshack.us/img43/9384/tabelf.jpg </head> <body> <form id="form1" runat="server"> <div> <asp:gridview id="gridview1" runat="server" autogeneratecolumns="false" autogeneratedeletebutton="false" autogenerateeditbutton="false" onrowcancelingedit="gridview1_rowcancelingedit" onrowdeleting="gridview1_rowdeleting" onrowediting="gridview1_rowediting" onrowupdating="gridview1_rowupdating" onrowcommand="gridview1_rowcommand" style='table-layout: inherit'> <columns> <asp:templatefield headertext="site id"> <itemtemplate> <asp:label id="lblid" runat="server" text='<%#eval("id") %>'></asp:label> <%--<asp:label id="label1" runat="server" text='<%# container.dataitemindex%>'></asp:label>--%> </itemtemplate> </asp:templatefield> <asp:templatefield headertext="service name"> <itemtemplate> <asp:label id="lbl" runat="server" text='<%#eval("firstname") %>'></asp:label> </itemtemplate> <edititemtemplate> <asp:textbox id="txt" runat="server" text='<%#eval("firstname") %>'></asp:textbox> </edititemtemplate> </asp:templatefield> <asp:templatefield headertext="price 1"> <itemtemplate> <asp:label id="lblpriceone" runat="server" text='test'></asp:label> <asp:gridview id="gridview2" runat="server" autogeneratecolumns="false" autogeneratedeletebutton="false" autogenerateeditbutton="false"> <columns> <asp:boundfield datafield="lastname" headertext="lastname" sortexpression="lastname"> <itemstyle width="20%"/> </asp:boundfield> <asp:boundfield datafield="firstname" headertext="discription" sortexpression="firstname"> <itemstyle width="20%" /> </asp:boundfield> </columns> </asp:gridview> </itemtemplate> </asp:templatefield> <asp:templatefield headertext="price 2"> <itemtemplate> <asp:label id="lblpricetwo" runat="server" text='test2'></asp:label> <asp:gridview id="gridview3" runat="server" autogeneratecolumns="false" autogeneratedeletebutton="false" autogenerateeditbutton="false"> <columns> <asp:boundfield datafield="lastname" headertext="lastname" sortexpression="lastname"> <itemstyle width="20%" /> </asp:boundfield> <asp:boundfield datafield="firstname" headertext="discription" sortexpression="firstname"> <itemstyle width="20%" /> </asp:boundfield> </columns> </asp:gridview> </itemtemplate> </asp:templatefield> <asp:templatefield headertext=""> <itemtemplate> <asp:button id="btnshow" runat="server" text="expand" commandname="show" commandargument='<%# container.dataitemindex%>' /> </itemtemplate> </asp:templatefield> </columns> </asp:gridview> </div> </form> </body> </html>
there article might useful:
http://www.codeproject.com/articles/249155/rows-and-columns-merging-in-asp-net-gridview-contr
asp.net html css
Comments
Post a Comment