vendredi 8 novembre 2019

How to move selected Checkbox to the top of a Checkbox List

I have a Databound Checkbox List and want the selected checkbox item to move to the top of the list.

I've tried searching but all solutions are using html checkbox instead of asp checkbox list

Here is my code for the Checkbox List

<asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSource2" DataTextField="SBrand" DataValueField="SBrand" AutoPostBack="True" SelectedIndexChanged="gvStock_SelectedIndexChanged" OnSelectedIndexChanged="CheckBoxList_SelectedIndexChanged" OnPageIndexChanging="gvStock_PageIndexChanging" CssClass="checkboxlist">
</asp:CheckBoxList>



Aucun commentaire:

Enregistrer un commentaire