日期:2014-05-16  浏览次数:20595 次

如何用dropdownlist给datalist中绑定的数据排序?
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
            <tr>
                <td style="height: 260px" valign="top">
                    <table cellpadding="0" cellspacing="0" width="100%" border="0">
                        <asp:DataList ID="dtlst" runat="server" DataKeyField="ID" Width="100%" OnItemCommand="dtlst_ItemCommand">
                            <HeaderTemplate>
                                <tr>
                                    <td align="center" class="gridheadLeft" nowrap="nowrap" style="width: 30px;">
                                     <input id="chkAllTop" onclick="CheckedAll(this)" type="checkbox" /></td>                                              
                                    <td style="width: 10%" class="gridhead" nowrap="nowrap">
                                        &nbsp;姓名
                                    </td>  
                                    <td style="width: 10%" class="gridhead" nowrap="nowrap">
                                        &nbsp;出生年月
                                    </td>