faraz akram

faraz akram

  • NA
  • 129
  • 0

handling templete control checkbox event in code behind C#

Sep 26 2010 5:11 AM

hi
i have added a templete cotrol in a web datagrid view the html code is as follow
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server"
oncheckedchanged="chkSelect_CheckedChanged" />
</ItemTemplate>
<HeaderTemplate>
</HeaderTemplate>
</asp:TemplateField>
 
now when i go into edit template control designer and their i open the checkchanged event for that control by double clicking it comes up with following event
protected void chkSelect_CheckedChanged(object sender, EventArgs e)
{
///this event is not firing on selecting  or deselecting the check bob however it should be , wot to do in order to cath this event on runtime so that i may able to do some row operations on checking/unchecking of this template control field
 
}

Answers (1)