你自己写一个table不就可以了

解决方案 »

  1.   

    就是啊。用代码生成一个table
      

  2.   

    <asp:repeater id="Repeater1" runat="server">
    <HeaderTemplate>
    <table border="1">
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
    <td align="center" valign="top">
    <TABLE class="button1" id="Table1" borderColor="#ffffff" width="100%" align="center" bgColor="#eef7ff" border="1">
    <TR>
    <TD style="WIDTH: 53px; HEIGHT: 25px" align="left" CssClass="face">报价类型:</TD>
    <TD style="HEIGHT: 25px" align="left"><asp:textbox id="PriceName" CssClass="face" MaxLength="25" Width="87px" runat="server"></asp:textbox><asp:textbox id="PriceType" Width="5" runat="server" Visible="False" type="hidden"></asp:textbox><asp:textbox id="pricesoure" Width="5" runat="server" Visible="False" type="hidden"></asp:textbox></TD>
    <TD style="HEIGHT: 25px" align="left" CssClass="face">成人报价:</TD>
    <TD style="HEIGHT: 25px" align="right"><asp:textbox id="AdultPrice" CssClass="face" MaxLength="12" Width="50" runat="server"></asp:textbox></TD>
    <TD style="HEIGHT: 25px" align="left" CssClass="face">儿童报价:</TD>
    <TD style="HEIGHT: 25px" align="right"><asp:textbox id="ChildPrice" CssClass="face" MaxLength="12" Width="50" runat="server"></asp:textbox></TD>
    </TR>
    <TR>
    <TD style="WIDTH: 53px" CssClass="face">服务标准:</TD>
    <TD colSpan="4"><asp:textbox id="ServerStand" CssClass="face" MaxLength="1000" Width="337px" runat="server" css rows="2" cols="20" TextMode="MultiLine"></asp:textbox></TD>
    <TD><asp:button id="Button2" CssClass="button2" runat="server" Text="修改报价" CausesValidation="False"></asp:button><br>
    <asp:button id="Button1" CssClass="button2" runat="server" Text="删除报价" CausesValidation="False"></asp:button></TD>
    </TR>
    <tr>
    <td colspan="10" align="center"><asp:Label id="notice" runat="server" Width="200px" ForeColor="Red"></asp:Label></td>
    </tr>
    </TABLE>
    </td>
    </tr></ItemTemplate>
    <FooterTemplate>
    <table>
    </FooterTemplate> </asp:repeater>
      

  3.   

    dongchuanlu(匡奇)的好像不是我要的那种多列显示。。
    我的意思是要在Repeater控件里象DataList可以横向显示记录
      

  4.   

    自己建一个table,我也只有这个主意
      

  5.   

    一般, Repeater 控件只是纵向重复绑定数据。如果你要横向绑定的话,你需要自己编辑代码,循环读取要显示的数据字段,并判断显示的个数极限,进行显示操作。
    对于这种情况,一般不建议 Repeater,正如上面很多人提议的那样,你可以采用自己定制 Table,或者你完全也可以自己编写一个满足要求的具有简单绑定功能的服务器控件来。