Excel Like Layout for monthly information in ASP.Net

Снег

New Member
i have an excel sheet with a bunch of row headers and column headers.The row headers are a number of criteria.the column headers are dates for the entire month.i need to be able to design this in asp.net form.This is my data design.I created the row headers in a tableI created all the dates in a parent tablei created another table with all the row headers as the columns.For my view is use the following code:\[code\]<div> <table > <tr > <td> </td> <td style="width:1px;background-color:black;float:right; height:30px;"/> <td > <asp:ListView ID="lvDate" runat="server" DataSourceID="SqlDataSource2"> <ItemTemplate> <td> <table> <tr><asp:Label ID="Label4" runat="server" Text='<%#Eval("ReportDate","{0:d}") %>' /> </tr><hr /> </table> </td> </ItemTemplate> </asp:ListView> </td> </tr> <tr> <td align="left" valign="top"> <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <table> <tr> <asp:Label ID="Label1" runat="server" Text='<%#Eval("RowHeader") %>' Width="200px"/> <br /><hr/> </tr> </table> </ItemTemplate> </asp:ListView> </td> <td style="width:1px;background-color:black;float:right; height:500px;"/> <td align="left" valign="top"> <asp:ListView ID="ListView2" runat="server" DataSourceID="SqlDataSource2"> <ItemTemplate> <td align="center" valign="top"> <table> <tr ><asp:Label ID="Label8" runat="server" Text="" /> <br /></tr><hr /> <tr ><asp:Label ID="Label3" runat="server" Text='<%#Eval("TotalOpenInventory") %>' /> <br /></tr><hr /> <tr ><asp:Label ID="Label2" runat="server" Text='<%#Eval("TotalProduction") %>' /> <br /></tr><hr /> <tr ><asp:Label ID="Label1" runat="server" Text='<%#Eval("TotalSalesOverAll") %>' /> <br/></tr><hr /> <tr ><asp:Label ID="Label5" runat="server" Text='<%#Eval("TotalUnfinishedInventory") %>' /> <br/></tr><hr /> <tr ><asp:Label ID="Label6" runat="server" Text='<%#Eval("TotalEndingInventory") %>' /> <br/></tr><hr /> <tr ><asp:Label ID="Label7" runat="server" Text='<%#Eval("GasOpenInventory") %>' /> <br/></tr><hr /> </table> </td> </ItemTemplate> </asp:ListView> </td> <%--<td> &nbsp;</td>--%> </tr> </table></div>\[/code\]I am able to use list views to design the layout of data. but i cannot make my listview look like an excel grid.Any ideas?
 
Back
Top