When i click the save button, i need to find the information in the myddl dropdownlist...here is the html
<ultragrid...etc
<igtbl:TemplatedColumn BaseColumnName="ConsentOrgan" IsBound="True" Key="ConsentOrgan"> <CellTemplate> <asp:DropDownList ID="myddl" runat="server" DataSourceID="odsConsent" DataTextField="Name" DataValueField="ID" AppendDataBoundItems="true" Style="z-index: 100; width:100%; position: absolute; top: 0px "> </asp:DropDownList> </CellTemplate> </igtbl:TemplatedColumn>
so my code SHOULD look something like this...
protected void txtSave_Click(object sender, DataGridCommandEventArgs e) { DropDownList TempList; String TempValue; TempList = (DropDownList)e.Item.FindControl("myddl"); TempValue = TempList.SelectedItem.Value; }
but i need help on how to find the control, after that i'm pretty sure i can get the selected item.
any ideas? Thank you
I believe there are many forum thread that discuss this specific topic (FindControl per Template Column). I believe you can try the approach suggested here:
http://forums.infragistics.com/forums/p/639/9872.aspx#9872