[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Firing datagrid dropdownlist on selection change

=?Utf-8?B?cm9kY2hhcg==?=

2/13/2004 2:01:00 PM

I have a datagrid with a template that has several dropdownlists when in edit mode. I need an event handler for the dropdownlist so on a new selection several other dropdownlists are updated with related data. I have written code to do just this on the itemCreated event of the datagrid, but need to execute this same code on a selection change in the dropdownlist. How do I do this in code behind? How do I reference the datagrid control and capture the event

Thank you

Troy
1 Answer

Teemu Keiski

2/13/2004 5:19:00 PM

0

Hi,

you can wire the event handler say in ItemCommand event handler (search the
control from Item and then just wire in code), or you can wire it
declaratively in aspx (...OnSelectedIndexChanged="method_name"...) for the
DDL (in the template).

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist


"Tro y" <anonymous@discussions.microsoft.com> wrote in message
news:8374B833-C55A-4BEC-93B4-F628550A1627@microsoft.com...
I have a datagrid with a template that has several dropdownlists when in
edit mode. I need an event handler for the dropdownlist so on a new
selection several other dropdownlists are updated with related data. I have
written code to do just this on the itemCreated event of the datagrid, but
need to execute this same code on a selection change in the dropdownlist.
How do I do this in code behind? How do I reference the datagrid control
and capture the event?

Thank you.

Troy