HTML 代码:
<cc1:SPASDataGrid ID="dgPayments" runat="server" AutoGenerateColumns="false" ShowFooter="true" Ajaxify="true">
<EditItemStyle VerticalAlign="Top"></EditItemStyle>
<FooterStyle VerticalAlign="Top"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="Pay To">
<FooterTemplate>
<table id="Table3" runat="server">
<tr>
<td>
<uc1:AnyDropDown ID="ddRolloverSource" runat="server" TableName="system_code" DisplayFieldName="description" CodeFieldName="code_value" WhereClause="PAYROLL_REQUEST" OnSelectedIndexChanged="ddRolloverSource_SelectedIndexChanged" AutoPostBack="true"></uc1:AnyDropDown>
</td>
</tr>
</table>
</FooterTemplate>
<ItemTemplate></ItemTemplate>
<EditItemTemplate></EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Post Tax Amount">
<FooterTemplate>
<table>
<tr>
<td>
<cc1:SPASRadioButton Checked="true" Text="All" ID="rbPostTaxAll" GroupName="rbPostTaxAllOrRemaining" TabIndex="40" runat="server" CssClass="CheckBoxList"></cc1:SPASRadioButton>
</td>
<td >
<cc1:SPASDropDownList ID="ddlPostTaxAmountOrPercentageF" TabIndex="80" runat="server">
<asp:ListItem Selected="true" Value="Amount">Amount</asp:ListItem>
</cc1:SPASDropDownList>
</td> </tr>
</table>
</FooterTemplate>
<ItemTemplate></ItemTemplate> <EditItemTemplate></EditItemTemplate>
</Columns>
</cc1:SPASDataGrid>
代码隐藏:
Protected Sub ddRolloverSource_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
'Disable the rbPostTaxAll and ddlPostTaxAmountOrPercentageF controls
End Sub
我正在尝试访问位于 Datagrid 中的控件,该控件位于 Datagrid 中的下拉列表的 selectedIndexChanged 事件内。