DataGrid and embeded Checkbox..How to find if checkbox clicked

G

Guest

Hi,

I have a datagrid.

<asp:DataGrid id="DataGrid1" runat="server" Height="237px" Width="280px"
AutoGenerateColumns="False" AlternatingItemStyle-BackColor="#e9e9e9"
ShowHeader="false" ShowFooter="false" >
<Columns>
<asp:TemplateColumn HeaderStyle-Height="0">
<ItemTemplate>
<asp:CheckBox id="CheckBox1" AutoPostBack=True
Text="<%# Container.DataItem %>" runat="server">
</asp:CheckBox> </ItemTemplate> </asp:TemplateColumn>
</Columns>
</asp:DataGrid>
How can I find out if CheckBox1 is clicked?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top