Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
113532 Points
12480 Posts
Microsoft
Feb 27, 2012 02:40 AM|LINK
Hi,
You need to access ListView from TabPanel first, then access DropDownList from InsertItem in ListView and bind DropDownList:
ListView lv = (ListView)ServiceProvTab.FindControl("ListView3"); DropDownList ddl = (DropDownList)lv.InsertItem.FindControl("Ins_ProvTab_Client_DropDown"); //...
Thanks,
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: Define DropDownList DataSource in Codebehind
Feb 27, 2012 02:40 AM|LINK
Hi,
You need to access ListView from TabPanel first, then access DropDownList from InsertItem in ListView and bind DropDownList:
ListView lv = (ListView)ServiceProvTab.FindControl("ListView3");
DropDownList ddl = (DropDownList)lv.InsertItem.FindControl("Ins_ProvTab_Client_DropDown");
//...
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework