Hi,
You can use it for TemplateColumn check boxes too.
"jiangyh" <ca****@msn.com> wrote in message
news:#X**************@TK2MSFTNGP10.phx.gbl...
hi Shiva:
thanks you help
But my Checkbox webControl in the DataGrid Template Column,so it can't
use OnCheckedChanged Event.
How to resolve this. thanks a lot.
jiangyh
"Shiva" <sh******@online.excite.com> дÈëÓʼþ
news:eW*************@TK2MSFTNGP11.phx.gbl...
In the <asp:CheckBox ...> tag, have OnCheckedChanged attribute that has
the name of the server-side event name. Eg:
<asp:Checkbox Runat=Server id="chk" OnCheckedChanged="CheckBox_Clicked" />
In the code-behind file:
void CheckBox_Clicked(Object sender, EventArgs e)
{
}
"jiangyh" <ca****@msn.com> wrote in message
news:Om*************@TK2MSFTNGP10.phx.gbl...
hi there:
I have a datagrid in my web form that contain a templet column.And in
this templet have a checkbox web control.I will get the checkbox state in
my serverside.
My question is which event I will add to my codebehind when I change
the checkbox state.
Thanks in advice.
jiangyh