470,614 Members | 1,584 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,614 developers. It's quick & easy.

Datagrid events for a checkbox

Does anyone know how to write code which displays the contents of a row in a
datagrid, into a label outside of the datagrid. I want this to happen when a
checkbox in a datagrid is checked.

My datagrid is as follows: -

<asp:DataGrid id="DataGrid1" runat="server" Width="100%"
AutoGenerateColumns="False">
<HeaderStyle Height="20px" Font-Bold="False" BackColor="#666699"
ForeColor="#ffffff"></HeaderStyle>
<Columns>
<asp:TemplateColumn HeaderImageUrl="../Images/Tick.gif">
<HeaderStyle HorizontalAlign="Center" Height="20px" Width="10px"
CssClass="dgHeader" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="10px"
VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<asp:CheckBox ID="chkSelection" Runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderStyle-Font-Bold="True" DataField="FullAddress"
HeaderText="Address">
<ItemStyle Font-Size="10pt" Height="11px" ForeColor="#666699"
CssClass="A"></ItemStyle>
</asp:BoundColumn>
</Columns>
</asp:DataGrid>

Does anyone even know which datagrid event I can use??

Cheers for any help anyone can give me

Nov 16 '05 #1
0 956

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jim Heavey | last post: by
7 posts views Thread by Lars Netzel | last post: by
2 posts views Thread by Luis Esteban Valencia | last post: by
2 posts views Thread by Luis Esteban Valencia Muñoz | last post: by
17 posts views Thread by Mike Fellows | last post: by
3 posts views Thread by Fao, Sean | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.