DropDown event doesn't trigger

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>
<asp:DropDownList id="cmbObdelaj" runat="server" AutoPostBack=True
OnSelectedIndexChanged="DropDown_SelectedIndexChanged">
<asp:ListItem Value="P">PPPPP</asp:ListItem>
<asp:ListItem Value="D">DDDD</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</asp:datagrid>

As you can see, DropDownList have associated OnSelectedIndexChanged event,
which never triggers. :( Why?
 
J

John Smith

This is sub's body:

Public Sub DropDown_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Convert.ToInt32("SSSS")
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top