how to divide a cell into exactly 2 equal rows in gridview

venom2124

New Member
i have a grid view in which i need to divide a cell into 2 equal rows...here i can divide but i cannot divide into equal parts....how can i make a cell exactly into 2 rows....here is my code..\[code\]<Wizard:WizardGridView ID="gvresmgt" runat="server" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="false" WizardCustomPager="False" EnableModelValidation="True" CssClass="style1" ShowHeader="False" > <Columns> <asp:TemplateField > <ItemStyle Width="100px" HorizontalAlign="left" /> <ItemTemplate> <asp:Label runat="server" ID="lblTitle" Text='<%# Eval("BGP_ID")%>' ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField > <ItemStyle Width="100px" HorizontalAlign="Center" /> <ItemTemplate> <asp:Label runat="server" ID="lblDescription" Text='<%# Eval("BGP_DESC")%>' > </asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField><ItemStyle Width="100px" HorizontalAlign="Center" /><ItemTemplate>**<table> <tr> <td> <asp:Label runat="server" ID="lblPlanStart" Font-Bold="true" Text="Projects"> </asp:Label> </td> </tr> <tr> <td> <asp:Label runat="server" ID="Label3" Font-Bold="true" Text="SubTotal"> </asp:Label> </td> </tr></table>** </ItemTemplate> </asp:TemplateField></Columns></Wizard:WizardGridView>\[/code\]and i tried like this but i can divide the cell but not exactly into 2 rows...getting some extra space..\[code\] <ItemStyle Width="100px" HorizontalAlign="Center" /> <ItemTemplate> <table> <tr> <td style="width:100px"> <asp:Label runat="server" ID="lblPlanStart" Font-Bold="true" Text="Projects"></asp:Label> </td> </tr> <tr> <td style="width:100px"> <asp:Label runat="server" ID="Label3" Font-Bold="true" Text="SubTotal"></asp:Label> </td> </tr> </table> </ItemTemplate>\[/code\]
 
Back
Top