-1

我有一个网格视图,我需要将一个单元格分成 2 个相等的行...

在这里我可以分割,但我不能分成相等的部分....

我怎样才能将一个单元格精确地分成 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>
4

1 回答 1

0

Try with the height set to half

<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>
于 2012-12-27T04:30:56.217 回答