P
Petr Shekhtmeyster
Hello everyone,
I have a DataGrid with the checkbox in the TemplateColumn:
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="chkCompleted" Runat=server
Checked='<%#DataBinder.Eval(Container.DataItem,"completed")%>'
AutoPostBack="true" OnCheckedChanged="CompleteEvent"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
And in the code-behind I have a procedure:
Public Sub CompleteEvent(ByVal sender As System.Object, ByVal e As
System.EventArgs)
'some code
End Sub
But the postback is never run the procedure.
Am I doing something wrong?
Thanks in advance,
Petr
I have a DataGrid with the checkbox in the TemplateColumn:
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="chkCompleted" Runat=server
Checked='<%#DataBinder.Eval(Container.DataItem,"completed")%>'
AutoPostBack="true" OnCheckedChanged="CompleteEvent"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
And in the code-behind I have a procedure:
Public Sub CompleteEvent(ByVal sender As System.Object, ByVal e As
System.EventArgs)
'some code
End Sub
But the postback is never run the procedure.
Am I doing something wrong?
Thanks in advance,
Petr