Answered by:
Grid view with binding of dropdownlist in the user control?

Question
-
How to bind a dropdownlist inside a gridview in a user control where the parameter will be change for every page ? how to handle it with a .aspx page?
- Moved by Caillen Thursday, October 16, 2014 7:05 AM
Wednesday, October 15, 2014 7:27 AM
Answers
-
Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).Wednesday, October 15, 2014 3:28 PM
All replies
-
Wednesday, October 15, 2014 8:49 AM
-
Thank you @Vishnu for your suggestion . but this is not the solution what a looking for. actually i want to bind the dropdownlist into gridview in a user control . But i also want to bind this dropdownlist with different data source according to the page required .I mean that if i use this user control in a page name like "financial.aspx", at that time the dropdownlist will bind with "financialcriteria" or if i use it in "salary.aspx" it will bind with "salarycriteria" ,actually i want to bind the dropdownlist dynamically from different .aspx page.Wednesday, October 15, 2014 10:36 AM
-
Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).Wednesday, October 15, 2014 3:28 PM
-
you can use template field to bind dropdownlist to gridview an in the rowcomand event find the dropdownlis by using "findcontrol" and bind data.find control like this
"DropDownList ddl = (DropDownList )row.FindControl("ddlname");"
Thursday, October 16, 2014 12:24 PM