Hello,
I'm new to dotnet Slackers and relatively new to ASP.Net/AJAX Web application development so please bear with me.
Ok, here is my scenario. I have a Gridview and it contains approx. 10 columns. In 2 of the columns, I'm dynamically displaying a checkbox; one for "Send" and the other "Delete". I want for each gridview row, to be able to check or uncheck the checkbox but make it mutually exclusive to the other checkbox column. For instance, If the user selects the "Send" checkbox and the "Delete" checkbox is not selected, then if the user selects the "Delete" checkbox, it deselects the "Send" checkbox.
I have included the Ajax Mutually Exclusive checkbox extender to accomplish this and it works for each gridview row great, however,
here's the problem I'm having:
When I select a checkbox on a different Gridview row, it deselects the other selected checkbox in the different Gridview Rows.
I need the mutually exclusive checkbox extender to be mutually exclusive for each Gridview Row too.
Here's what I currently have for the existing code:
<
ItemTemplate>
<asp:CheckBox ID="chkSend" runat="server" Font-Size="small" OnCheckedChanged="tosend_CheckedChanged" Checked="<%# GetChkBoxSendValue(Container) %>" AutoPostBack="True" />
<cc1:MutuallyExclusiveCheckBoxExtender ID="chkSendExtender" runat="server" TargetControlID="chkSend" Key="SendOrDelete"/>
</ItemTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkDelete" runat="server" Font-Size="small" OnCheckedChanged="todelete_CheckedChanged"Checked="<%# GetChkBoxDeleteValue(Container) %>" AutoPostBack="True" />
<cc1:MutuallyExclusiveCheckBoxExtender ID="chkDeleteExtender" runat="server" TargetControlID="chkDelete" Key="SendOrDelete"/>
</ItemTemplate>
Any assistance with this matter would be greatly appreciated.
Jeff O'Connell