J
John Smith
I have DropDownList inside DataGrid:
<asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundColumn Visible="False" DataField="id" ReadOnly="True"
HeaderText="ID"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="O">
<ItemTemplate>
<aspropDownList id="cmbObdelaj" runat="server" AutoPostBack=True
OnSelectedIndexChanged="DropDown_SelectedIndexChanged">
<asp:ListItem Value="P">PPPPP</asp:ListItem>
<asp:ListItem Value="D">DDDD</asp:ListItem>
</aspropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</asp:datagrid>
As you can see, DropDownList have associated OnSelectedIndexChanged event,
which never triggers. Why?
<asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundColumn Visible="False" DataField="id" ReadOnly="True"
HeaderText="ID"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="O">
<ItemTemplate>
<aspropDownList id="cmbObdelaj" runat="server" AutoPostBack=True
OnSelectedIndexChanged="DropDown_SelectedIndexChanged">
<asp:ListItem Value="P">PPPPP</asp:ListItem>
<asp:ListItem Value="D">DDDD</asp:ListItem>
</aspropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</asp:datagrid>
As you can see, DropDownList have associated OnSelectedIndexChanged event,
which never triggers. Why?