You may need to set the CheckBox's AutoPostBack to true, see following
sample
<asp
ataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 45px; POSITION:
absolute; TOP: 28px" runat="server" Height="194px" Width="369px"
DataSource="<%# DataSet11 %>" DataMember="Table1"
AutoGenerateColumns="False">
<HeaderStyle BackColor="#aaaadd">
</HeaderStyle>
<Columns>
<asp:TemplateColumn >
<ItemTemplate >
<asp:CheckBox id="CheckBox1" AutoPostBack="True" Runat ="server"
OnCheckedChanged ="CheckBox1_CheckedChanged">
</asp:CheckBox>
...
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp
ataGrid>
Public Sub CheckBox1_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Dim cbox As CheckBox
cbox = sender
Response.Write(cbox.ClientID)
End Sub
The clientID should be like:
DataGrid1__ctl4_CheckBox1
And you get the row and column inforamtion form the string, for example,
current row is 4 (from "ctl4")
Luke
(This posting is provided "AS IS", with no warranties, and confers no
rights.)