Use the OnSelectedIndexChanged attribute of the <asp

ropDownList> element
to hook to your server-side event.
Eg:
In .aspx file:
....
<EditItemTemplate>
<asp

ropDownList id="ddl" runat=server
OnSelectedIndexChanged="SelectionChanged" />
<EditItemTemplate>
....
In code-behind file:
//C#
protected void SelectionChanged (object sender, EventArgs e)
{
DropDownList d = (DropDownList)sender;
// Use d here
}
HTH.
"Uma Shanmugam via .NET 247" <> wrote in message
news:ePbg9$...
(Type your message here)
--------------------------------
From: Uma Shanmugam
Everyone,
I have a datagrid and it has a dropdownlist in the Edit mode.I want to
capture the selectedIndexChanged event of the dropdownlist. I tried
ItemCommand event and then realised that it is fired when a button is
clicked.Any help will be greatly appreciated.
Thanks in Advance
Uma Shanmugam
-----------------------
Posted by a user from .NET 247 (
http://www.dotnet247.com/)
<Id>/ZIKIJ+ZZkqlTW/OJYF/Cg==</Id>