Note that there are some explanatory texts on larger screens.

plurals
  1. POAccess datagrid controls in a dropdown list selectedindexchanged event
    text
    copied!<p>HTML CODE:</p> <pre><code>&lt;cc1:SPASDataGrid ID="dgPayments" runat="server" AutoGenerateColumns="false" ShowFooter="true" Ajaxify="true"&gt; &lt;EditItemStyle VerticalAlign="Top"&gt;&lt;/EditItemStyle&gt; &lt;FooterStyle VerticalAlign="Top"&gt;&lt;/FooterStyle&gt; &lt;Columns&gt; &lt;asp:TemplateColumn HeaderText="Pay To"&gt; &lt;FooterTemplate&gt; &lt;table id="Table3" runat="server"&gt; &lt;tr&gt; &lt;td&gt; &lt;uc1:AnyDropDown ID="ddRolloverSource" runat="server" TableName="system_code" DisplayFieldName="description" CodeFieldName="code_value" WhereClause="PAYROLL_REQUEST" OnSelectedIndexChanged="ddRolloverSource_SelectedIndexChanged" AutoPostBack="true"&gt;&lt;/uc1:AnyDropDown&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/FooterTemplate&gt; &lt;ItemTemplate&gt;&lt;/ItemTemplate&gt; &lt;EditItemTemplate&gt;&lt;/EditItemTemplate&gt; &lt;/asp:TemplateColumn&gt; &lt;asp:TemplateColumn HeaderText="Post Tax Amount"&gt; &lt;FooterTemplate&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;cc1:SPASRadioButton Checked="true" Text="All" ID="rbPostTaxAll" GroupName="rbPostTaxAllOrRemaining" TabIndex="40" runat="server" CssClass="CheckBoxList"&gt;&lt;/cc1:SPASRadioButton&gt; &lt;/td&gt; &lt;td &gt; &lt;cc1:SPASDropDownList ID="ddlPostTaxAmountOrPercentageF" TabIndex="80" runat="server"&gt; &lt;asp:ListItem Selected="true" Value="Amount"&gt;Amount&lt;/asp:ListItem&gt; &lt;/cc1:SPASDropDownList&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/FooterTemplate&gt; &lt;ItemTemplate&gt;&lt;/ItemTemplate&gt; &lt;EditItemTemplate&gt;&lt;/EditItemTemplate&gt; &lt;/Columns&gt; &lt;/cc1:SPASDataGrid&gt; </code></pre> <p>codebehind:</p> <pre><code>Protected Sub ddRolloverSource_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) 'Disable the rbPostTaxAll and ddlPostTaxAmountOrPercentageF controls End Sub </code></pre> <p>I am trying to access controls which are in Datagrid inside the selectedIndexChanged event of a dropdown list which is also in the Datagrid.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload