I'm adding items dynamically when a row is selected from GridView.
1. How can i make the items added are selected by default - (solved)
2. How can i avoid duplicates getting added to list
3. How can i remove them from list when user un-checks them.
And I want to change checkbox with an image and I'm using css like following but it is not working
.cbxCustom
{
...
}
.cbxCustom tr td checkbox
{
....
}
<asp:CheckBoxList ID="cbl1" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="cbl1_OnSelectedIndexChange"
CssClass="cbxCustom">
</asp:CheckBoxList>