Luke,
Two questions:
1.) Why are you talking about multiple tables (i.e. first and second)? I
though we were only working on one table here to reorganize, not add/delete
rows?
and
2.) Is there a way to have a sortable/moveable table like the one in the
sample, AND have the table header row be fixed so that it doesn't scroll off
the screen? When I define my repeater (or could be a datagrid) which
displays my data (as shown in the following) the column re-org works, and
the header row click to sort works, but when I use the scroll bars from the
DIV, the headers move out of sight as you scroll down, and I would like to
always keep them visible; and I cannot figure out how to do that:
<DIV id="divOrderDetail" style="OVERFLOW-Y: scroll; LEFT: 7px;
OVERFLOW-X: hidden; WIDTH: 1027px; POSITION: absolute; TOP: 130px; HEIGHT:
432px">
<asp:Repeater id="RepeaterSort" runat="server" EnableViewState="False">
<ItemTemplate>
<tr valign="Top" class="SalesOrderData">
<td width="65px"><%# DataBinder.Eval(Container.DataItem, "ORDNUM")
%></td>
<td width="75px"><%# DataBinder.Eval(Container.DataItem, "CUSTID")
%></td>
<td width="250px"><%# DataBinder.Eval(Container.DataItem, "Name")
%></td>
<td width="225px"><%# DataBinder.Eval(Container.DataItem, "CUSTPO")
%></td>
<td width="60px"><%# Format(DataBinder.Eval(Container.DataItem,
"ORDDTE"),"MM/dd/yy") %></td>
<td width="60px"><%# DataBinder.Eval(Container.DataItem, "STATUS")
%></td>
<td width="50px"><%# DataBinder.Eval(Container.DataItem, "OrderType")
%></td>
<td width="230px"><%# DataBinder.Eval(Container.DataItem,
"ShipToName") %></td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr valign="Top" class="SalesOrderDataShaded">
<td width="65px"><%# DataBinder.Eval(Container.DataItem, "ORDNUM")
%></td>
<td width="75px"><%# DataBinder.Eval(Container.DataItem, "CUSTID")
%></td>
<td width="250px"><%# DataBinder.Eval(Container.DataItem, "Name")
%></td>
<td width="225px"><%# DataBinder.Eval(Container.DataItem, "CUSTPO")
%></td>
<td width="60px"><%# Format(DataBinder.Eval(Container.DataItem,
"ORDDTE"),"MM/dd/yy") %></td>
<td width="60px"><%# DataBinder.Eval(Container.DataItem, "STATUS")
%></td>
<td width="50px"><%# DataBinder.Eval(Container.DataItem, "OrderType")
%></td>
<td width="230px"><%# DataBinder.Eval(Container.DataItem,
"ShipToName") %></td>
</tr>
</AlternatingItemTemplate>
<HeaderTemplate>
<table id="mytable" class="xpTable" width="1015"
cellSpacing="0" cellPadding="0" border="0" dragcolor='gray'
slcolor="#ffffcc" hlcolor="#BEC5DE">
<thead>
<tr Class="SalesOrderHeadingSmall" valign="Bottom">
<td width="65px">Order #</td>
<td width="75px">Customer</td>
<td width="250px">Customer Name</td>
<td width="225px">Customer PO</td>
<td width="60px">Date</td>
<td width="60px">Status</td>
<td width="50px">Type</td>
<td width="230px">Ship To Name</td>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<FooterTemplate>
</tbody>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
<DIV id="divOrderDetailFooter" style="LEFT: 7px; WIDTH: 1025px; POSITION:
absolute; TOP: 562px; HEIGHT: 10px">
<TABLE cellSpacing="0" cellPadding="0" width="985" border="0">
<TR>
<TD class="SalesOrderHeadingSmall" vAlign="bottom" align="left"
width="442"><asp:label id="lblRecords" runat="server" Width="200px"
CssClass="SalesOrderFooterLeft"></asp:label></TD>
<TD class="SalesOrderHeadingSmall" vAlign="bottom" align="right"
width="443"><asp:label id="lblSort" runat="server" Width="200px"
CssClass="SalesOrderFooterRight"></asp:label></TD>
</TR>
</TABLE>
</DIV>