A
AlBruAn
I have a few DropDownList controls used for new record entry in the footer of
a datagrid and I want to limit the options available in one list based on
what is selected in a previous list; I've seen examples of this where the
DropDownLists are used in edit mode, but none for data entry mode. The
footer cell for one column is defined as:
<FooterTemplate>
<asp
ropDownList ID="cboWorkflowID" AutoPostBack="true"
OnSelectedIndexChanged="OnSelectedIndexChanged" DataSource='<%#
GetWorkflowIDs() %>' Runat="server" DataMember="WorkflowID"
DataTextField="WorkflowID" />
</FooterTemplate>
Setting a breakpoint in the function OnSelectedIndexChanged, I am able to
pull up the Command Window and see the SelectedValue by typing in:
? ( ListControl ) sender. Despite that, I can't for the life of me figure
out how to programmatically retrieve the value. I've tried virtually every
permutation of ((DropDownList)(_grid.Items[0].FindControl("cboWorkflowID")))
I can think of, but to no avail. Is there a way?
Regards,
Allen Anderson
a datagrid and I want to limit the options available in one list based on
what is selected in a previous list; I've seen examples of this where the
DropDownLists are used in edit mode, but none for data entry mode. The
footer cell for one column is defined as:
<FooterTemplate>
<asp
OnSelectedIndexChanged="OnSelectedIndexChanged" DataSource='<%#
GetWorkflowIDs() %>' Runat="server" DataMember="WorkflowID"
DataTextField="WorkflowID" />
</FooterTemplate>
Setting a breakpoint in the function OnSelectedIndexChanged, I am able to
pull up the Command Window and see the SelectedValue by typing in:
? ( ListControl ) sender. Despite that, I can't for the life of me figure
out how to programmatically retrieve the value. I've tried virtually every
permutation of ((DropDownList)(_grid.Items[0].FindControl("cboWorkflowID")))
I can think of, but to no avail. Is there a way?
Regards,
Allen Anderson