日期:2014-05-18  浏览次数:20485 次

关于数据绑定格式的问题
用什么数据绑定方法能实现数据如下格式
<table   border= "1 "   width= "49% "   id= "table1 ">
<tr>
<td   rowspan= "3 "   width= "118 "> 数据A0 </td>
<td   width= "118 "> 数据A1 </td>
<td   rowspan= "3 "   width= "114 "> 数据B0 </td>
<td> 数据B1 </td>
</tr>
<tr>
<td   width= "118 "> 数据A2 </td>
<td> 数据B2 </td>
</tr>
<tr>
<td   width= "118 "> 数据A3 </td>
<td> 数据B3 </td>
</tr>
<tr>
<td   rowspan= "3 "   width= "118 "> 数据C0 </td>
<td   width= "118 "> 数据C1 </td>
<td   rowspan= "3 "   width= "114 "> 数据D0 </td>
<td> 数据D1 </td>
</tr>
<tr>
<td   width= "118 "> 数据C2 </td>
<td> 数据D2 </td>
</tr>
<tr>
<td   width= "118 "> 数据C3 </td>
<td> 数据D3 </td>
</tr>
<tr>
<td   rowspan= "3 "   width= "118 "> 数据E0 </td>
<td   width= "118 "> 数据E1 </td>
<td   rowspan= "3 "   width= "114 "> 数据F0 </td>
<td> 数据F1 </td>
</tr>
<tr>
<td   width= "118 "> 数据E2 </td>
<td> 数据F2 </td>
</tr>
<tr>
<td   width= "118 "> 数据E3 </td>
<td> 数据F3 </td>
</tr>
</table>


------解决方案--------------------
不会画个【示意图】迈?
------解决方案--------------------
没那么丰富的想象力,

只能猜,m×n 布局,那么 DataList 吧
------解决方案--------------------
搜索:
GridView 合并单元格
很多种解决方法。
------解决方案--------------------
datalist里面可以再套table
------解决方案--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<html>
<head>
<title> New Document </title>
<meta name= "Generator " content= "EditPlus ">
<meta name= "Author " content= " ">
<meta name= "Keywords " content= " ">
<meta name= "Description " content= " ">
</head>

<body>
<asp:datalist id= "DataList1 " runat= "server " Width= "100% " EnableViewState= "False ">
<ItemTemplate>
<table border= "1 " width= "49% " id= "table1 ">
<tr>
<td rowspan= "3 " width= "118 "> <%# DataBinder.Eval(Container, "DataItem.newsdate ") %> </td>
<td width= "118 "> <%# DataBinder.Eval(Container, "DataItem.newsdate ") %> </td>
<td rowspan= "3 " width= "114 "> <%# DataBinder.Eval(Container, "DataItem.newsdate ") %> </td>
<td> <asp:Label id= "LContent " runat= "server " text