Answer for ur query
<ItemTemplate>
<asp:DropDownList CssClass="dropdown" ID="ddl"
DataTextField= "Desc"
DataValueField= "ID" Runat="server"
OnSelectedIndexChanged="ddl_SelectedIndexChanged()"/>
</ItemTemplate>
In the Code behind write the method as
public void ddl_SelectedIndexChanged(object sender,
System.EventArgs e)
{
// Identify sender.SelectedValue after typecasting it
here.
}
I am also facing with one more problem with datagrid.
I am using two Drodowns with ASP.NET Datagrid/(ASP.20
GridView) . What i want is , on selecting the first
dropdown i want to populate the second dropdown based on
the selection. The dropdown control is places in
ItemTemplate.
Regards,
Govind.
[quoted text, click to view] >-----Original Message-----
>this has been covered a lot in here, you should do a
search before posting.
>an overview of the process involves adding the control to
the grid and
>hooking up the event handler. you will need to add the
rebind code on each
>post since the control embedded in the webform occurs too
late in the
>pipeline to participate in viewstate.
>
>--
>Regards,
>Alvin Bruney
>[ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
>Got tidbits? Get it here...
http://tinyurl.com/27cok >"GaryB" <gb@nospam.com> wrote in message
>news:OPMDKw0oEHA.1992@TK2MSFTNGP09.phx.gbl...
>>I can put a dropdown in a grid column, databind it, and
it will work but
>>how can I get the itemchanged event so that I can do
something with it?
>> thanks,
>> G
>>
>
>
>.