这个地方用Gridview 或许不太合适
用repeater和datalist应该更加容易控制 没法发图上来
就把html贴出来吧 可能对你有些帮助
<asp:DataList ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound"
Style="position: relative" Width="100%">
<SeparatorTemplate>
<br />
</SeparatorTemplate>
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="border-top: #e8e8e8 1px solid;
left: 1px; width: 996px; position: relative; top: 0px; height: 32px">
<tr>
<td align="center" style="background-image: url(images/showbj.gif); border-left: #e8e8e8 1px solid;
width: 21px; height: 27px">
<img alt="a" src="../Images/GBook/001.gif" style="position: relative" /></td>
<td align="right" background="../Images/GBook/showbj.gif" colspan="2" style="border-right: #e8e8e8 1px solid;
background-image: url(images/showbj.gif); width: 978px; height: 27px; ">
<div style="left: 2px; width: 350px; position: relative; top: 0px; height: 26px;
text-align: left">
<a href='mailto:<%#DataBinder.Eval(Container.DataItem,"name") %>'>
<img id="IMG1" alt="a" src="../Images/GBook/mail.gif" style="left: 0px; border-top-style: none;
border-right-style: none; border-left-style: none; position: relative; top: 3px;
border-bottom-style: none" /></a> Email <a href='<%#DataBinder.Eval(Container.DataItem,"name") %>'>
<img alt="a" src="../Images/GBook/qq.gif" style="border-top-style: none; border-right-style: none;
border-left-style: none; position: relative; top: 3px; border-bottom-style: none" /></a>
QQ <a href='<%#DataBinder.Eval(Container.DataItem,"name") %>'><img alt="a" src="../Images/GBook/home.gif"
style="border-top-style: none; border-right-style: none; border-left-style: none;
position: relative; top: 3px; border-bottom-style: none" /></a> 主页 <img alt="a"
src="../Images/GBook/posttime.gif" style="left: 0px; border-top-style: none;
border-right-style: none; border-left-style: none; position: relative; top: 3px;
border-bottom-style: none" />
发布时间:<%#DataBinder.Eval(Container.DataItem, "time", "{0:D}")%></div>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-right: #e8e8e8 1px solid;
left: 1px; border-left: #e8e8e8 1px solid; width: 996px; position: relative;
top: 0px; height: 100%">
<tr>
<td align="center" style="border-right: #e8e8e8 1px solid; width: 125px; height: 123px">
<div style="width: 100px; position: relative; height: 100px">
<%--<img alt="a" src='images/face/<%#DataBinder.Eval(Container.DataItem,"name")%>'--%>
<img alt="a" src="../Images/GBook/pic1.gif" />
</div>
<asp:Label ID="lblUserPic" runat="server" Style="position: relative" Text='<%#DataBinder.Eval(Container.DataItem,"name") %>'></asp:Label></td>
<td style="width: 431px; border-bottom: #e8e8e8 1px solid; height: 123px">
<div style="left: 3px; width: 855px; position: relative; top: 0px; height: 82px;
text-align: left; ">
<%#DataBinder.Eval(Container.DataItem, "content")%>
<br />
——————————————————<br />
<div style=" color: red;"> 管理员回复:<%#DataBinder.Eval(Container.DataItem, "repcontent")%><br />
<%#DataBinder.Eval(Container.DataItem, "reptime")%></div>
</div>
<div style="left: 2px; width: 852px; position: relative; top: 0px; height: 25px;
text-align: right">
<img src="../Images/GBook/reply.gif" style="position: relative; top: 2px" />
<a href="AddGBook.aspx" target="_blank">发表留言</a>
<img src="../Images/GBook/004.gif" style="position: relative; top: 2px" />
<asp:LinkButton ID="lbtnReply" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID")%>'
OnCommand="lbtnReply_Command" Style="position: relative; top: 0px">回复</asp:LinkButton>
<img alt="a" src="../Images/GBook/delete.gif" style="border-top-style: none; border-right-style: none;
border-left-style: none; position: relative; top: 5px; border-bottom-style: none" />
<asp:LinkButton ID="lbtnDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID")%>'
OnCommand="lbtnDelete_Command" Style="position: relative">删除</asp:LinkButton>
</div>
</td>
</tr>
</table>
<table border="0" cellspacing="0" style="border-top: #e8e8e8 1px solid; left: 1px;
width: 996px; position: relative; top: 0px; height: 13px">
<tr>
<td style="background-image: url(images/showbj.gif); border-left: #e8e8e8 1px solid;
width: 114px; height: 17px">
<img alt="a" src="../Images/GBook/003.gif" style="position: relative" /></td>
<td style="background-image: url(images/showbj.gif); width: 2172px; height: 17px">
</td>
<td align="right" style="border-right: #e8e8e8 1px solid; background-image: url(images/showbj.gif);
width: 133px; height: 17px">
<img alt="a" src="../Images/GBook/001.gif" style="position: relative" /></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
你用GridView吗?这中模式的应该使用repertor控件吧?或者DataList啊!
同意,用DATALIST可以。
2楼的太强了,我就不竞争了,呵呵!你先试试吧!不行了我再说我的方法!