P
partybob99
I am working with a datagrid in asp.net and I added an itemtemplate to
place a checkbox in every row. The code looks like this (aspx page)
<asp:TemplateColumn HeaderText="Select"><HeaderStyle
Width="2%"></HeaderStyle>
<ItemTemplate>
<table align="center">
<asp:CheckBox ID="SELECT" Font-size="8" OnCheckedChanged="test"
runat="server" />
</table>
</ItemTemplate>
</asp:TemplateColumn>
When the user clicks on the check box and then clicks the submit button
the program will post the event to the "test" procedure I've set up.
If the user changes the state of the checkbox on multiple rows, the
"test" procedure will fire once for every checkbox state that has
changed.
My question is: In the procedure "test", how do I get the row number
the checkbox belongs to in the datagrid? I actually need to get a
number values from the row itself, but if I could get the row number
that would be enough that I could figure out the rest of it.
Thanks in advance
place a checkbox in every row. The code looks like this (aspx page)
<asp:TemplateColumn HeaderText="Select"><HeaderStyle
Width="2%"></HeaderStyle>
<ItemTemplate>
<table align="center">
<asp:CheckBox ID="SELECT" Font-size="8" OnCheckedChanged="test"
runat="server" />
</table>
</ItemTemplate>
</asp:TemplateColumn>
When the user clicks on the check box and then clicks the submit button
the program will post the event to the "test" procedure I've set up.
If the user changes the state of the checkbox on multiple rows, the
"test" procedure will fire once for every checkbox state that has
changed.
My question is: In the procedure "test", how do I get the row number
the checkbox belongs to in the datagrid? I actually need to get a
number values from the row itself, but if I could get the row number
that would be enough that I could figure out the rest of it.
Thanks in advance