C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Find control In Grid View [ In Footer Template on Dropdown Selected Index change]


Posted Date: 07 Nov 2009      Posted By: Lion      Member Level: Gold     Points: 1   Responses: 1



Hi Experts, i am Using Grid View Control, In this Grid view control i have a Footer Template. In Footer Control i have a 4 Dropdown List .

I want to Find DropDownList 2,3 and 4 on DropdownList1 on Selected Index event.


How Can To do This..

I am using This code But Is give Me Null Value..

My code...

DropDownList ddlFPurchaseID = (DropDownList)GridView2.Controls[0].Controls[0].FindControl("ddlFPurchaseID");


Give Me Soluation.



Thanks & Regards
Lion



Please rate this post, if it is useful for you.





Responses

Author: Kirtan    08 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

you should use the code like below



DropDownList ddlFPurchaseID = (DropDownList)GridView2.FooterRow.FindControl("ddlFPurchaseID");


Kirtan Patel
-----------------------------------------------------
Master Of Computer Application(Sem-1)
Bachelore of Computer Application



Post Reply
You must Sign In to post a response.
Next : How to check
Previous : Logout
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use