我有一个网格视图,其中我需要将一个单元格划分为2个相等的行...
在这里,我可以划分,但我不能分成相等的部分......
如何将一个单元格精确地分成两行......
这是我的代码..
更新一次
<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>
**<div id="1" style="border-bottom: solid 1px #C0C0C0">
<asp:Label runat="server" ID="lblPlanStart" Font-Bold="true" Text="Projects"></asp:Label>
<br/>
<br/>
</div>
<asp:Label runat="server" ID="Label3" Font-Bold="true" Text="SubTotal"></asp:Label> **
</ItemTemplate>
</asp:TemplateField>
</Columns>
</Wizard:WizardGridView>
答案 0 :(得分:0)
尝试将高度设置为一半
<ItemStyle Width="100px" Height="20px" HorizontalAlign="Center" />
<ItemTemplate>
<table style="border: 1px solid black;">
<tr>
<td style="border: 1px solid black;">
<asp:Label runat="server" ID="lblPlanStart" Font-Bold="true" Text="Unknown"></asp:Label>
</td>
</tr>
<tr>
<td style="border: 1px solid black;">
<asp:Label runat="server" ID="lblPlanStart" Font-Bold="true" Text="Projects"></asp:Label>
</td>
</tr>
<tr>
<td style="border: 1px solid black;">
<asp:Label runat="server" ID="Label3" Font-Bold="true" Text="SubTotal"></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>