Create an event handler for managing clicks on all of the check boxes, and capture the user behavior you want.
If you take this code, and view source on the HTML that is rendered, we get:
<table id="MainContent_cblCurrency">
<tr>
<td><input id="MainContent_cblCurrency_0" type="checkbox" name="ctl00$MainContent$cblCurrency$0" value="0" /><label for="MainContent_cblCurrency_0">ALL</label></td>
</tr><tr>
<td><input id="MainContent_cblCurrency_1" type="checkbox" name="ctl00$MainContent$cblCurrency$1" value="1" /><label for="MainContent_cblCurrency_1">A</label></td>
</tr><tr>
<td><input id="MainContent_cblCurrency_2" type="checkbox" name="ctl00$MainContent$cblCurrency$2" value="2" /><label for="MainContent_cblCurrency_2">B</label></td>
</tr><tr>
<td><input id="MainContent_cblCurrency_3" type="checkbox" name="ctl00$MainContent$cblCurrency$3" value="3" /><label for="MainContent_cblCurrency_3">C</label></td>
</tr><tr>
<td><input id="MainContent_cblCurrency_4" type="checkbox" name="ctl00$MainContent$cblCurrency$4" value="4" /><label for="MainContent_cblCurrency_4">D</label></td>
</tr>
</table>
It's not pretty, but it is what we have to work with.
This JS will capture the click of all the checkboxes. It locates the checkboxes based on the ID of the containing table. If it is the "all" checkbox is checked(based on the value of the checked input) it will uncheck all currently selected checkboxes:
$().ready(
function () {
$("#<%=cblCurrency.ClientID%> input").click( // The ClientID property should tell you that the ID if the table is
function () {
var eventSource = $(this); //The checkbox that was clicked
//for debugging Delete once you get working
//console.log(eventSource.val())
//console.log(eventSource.is(':checked'))
if (eventSource.val() == "0" && eventSource.is(':checked')) { // Make sure the value is what you expect and that the check box is being checked (and not unchecked)
$("#<%=cblCurrency.ClientID%> input").not(eventSource).prop('checked', false)// uncheck all other checkbox. exclude the input that is the source of the event.
}
}
)
}
);
A version of this is here:
http://jsfiddle.net/RGW4Q/