Click here to Skip to main content
15,914,074 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
i have a form where i want to bind gridview.when i trying to bind there is error through this control not exist in current context.i used findcontrol but did not get result,How can it possible plz sugest me.
Posted
Comments
bbirajdar 28-Mar-12 8:14am    
Incomplete question. Provide with the code snippets. If the gridview is placed directly on the page, you dont need to use FindControl . It will be accessible directly in the codebehind.

1 solution

Hi,

Your ques is not clear;
To which data want to bind the control?

Control not existing means- Try to remove the control totally and drop the same control from Toolbox, then proceed. For some conditions you may loose the control also.

reagrds,
Vinay
 
Share this answer
 
Comments
Pradhan Gagan 28-Mar-12 7:44am    
yes the question is on webform i drag the grid control time of bind the exception is show this control not exist in this form.i used findcontrol
like (gridview)this.findcontrol("gridviewname") but not solve still

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900