|
-
September 25th, 2002, 02:50 PM
#1
DataGrid - TemplateColumn - Checkbox help needed
hello all,
I have a datagrid with a bunch of columns, the last column is a template column of checkboxes and the footer of the column is a button. below is the code for the column.
Code:
<asp:TemplateColumn HeaderText="Request">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<FooterStyle HorizontalAlign=Center></FooterStyle>
<FooterTemplate>
<asp:Button Text="Request" Runat=server ID=ButtonRequest></asp:Button>
</FooterTemplate>
<ItemStyle HorizontalAlign="Center" Width="5%"></ItemStyle> <ItemTemplate>
<asp:CheckBox id="CheckRequest" Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
When the user clicks the button, I wanna know which checkboxes are checked. Thanks in advance.
David
-
September 25th, 2002, 02:58 PM
#2
i guess asp.net code doesnt come through or some how it gets filter.
-
January 21st, 2003, 07:50 PM
#3
Hi,
You should use a loop to check
For i = 1 to Datagrid.Row.count
if (Checkbox.value) is Null then
End if
Next
Hope this help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|