Hi
Sorry to ask such a basic question, but I just cant get it.
I think this is simple, I have a checkbox in a row, and all I want is the ID of the row when the checkbox is check or unchecked.
This is my markup:
This is my code stub:
In the function chkTimeArrival_CheckedChanged how do I get the ID of the row.
I have the id in a hidden row:
And in the datakeynames
Sorry to ask such a basic question, but I just cant get it.
I think this is simple, I have a checkbox in a row, and all I want is the ID of the row when the checkbox is check or unchecked.
This is my markup:
<telerik:GridTemplateColumn HeaderText="Arrival" SortExpression="TimeArrival" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowFiltering="false"> |
<ItemTemplate> |
<asp:CheckBox ID="chkTimeArrival" runat="server" AutoPostBack="True" OnCheckedChanged="chkTimeArrival_CheckedChanged"/> |
<asp:Label ID="lblTimeArrival" runat="server" Text='<%# Bind("TimeArrival") %>'></asp:Label> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
This is my code stub:
Protected Sub chkTimeArrival_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) |
End Sub |
In the function chkTimeArrival_CheckedChanged how do I get the ID of the row.
I have the id in a hidden row:
<telerik:GridBoundColumn DataField="AppID" UniqueName="AppID" Visible="false"></telerik:GridBoundColumn>
And in the datakeynames
<
MasterTableView DataKeyNames="AppID">
Andy