This seems easy
Filter the results datasource that populates a dropdownlist by a
selection made in a second dropdownlist. It actually is pretty easy if
the second dropdownlist control is not in a template column in a
datagrid. However both dropdownlists exists in the same template column
and I'm having trouble figuring out how to trap the event.
Currently I'm populating the list datasource for both controls from the
aspx source page thusly
control1
<asp:DropDownList id=ddlItem runat="server" SelectedIndex='<%#
GetTagDescrSelectedIndex(DataBinder.Eval(Container.DataItem, "ItemTag"))
%>' DataTextField="FullDescr" DataValueField="ItemTag" DataSource="<%#
GetItemDescrDS(True) %>">
control2
<asp:DropDownList id=ddlHeadings runat="server" AutoPostBack="True"
DataTextField="Heading" DataValueField="Heading" DataSource="<%#
GetItemHeaders(True) %>"
The number of items in the first control is well over a thousand, so the
idea is to use the second control to select a smaller subset of items,
and thus make it easier for the user to find his selection in the list.
My problem is because the second dropdownlist control is created
dynamically in a datagrid I cannot directly reference the
selectedindexchanged event.
Any help would be greatly appreciated, thanks
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hbnj9g6/M=362131.6882499.7825260.1510227/D=groups/S=1705007709:TM/Y=YAHOO/EXP=1124319954/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
|