Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Friends,

I have created one report, in that report i display one grid view with two columns.
My grid view repeated dynamically, i add one link button for editing description column in grid view.
But in First Grid view button working fine, but for second grid view it is not clicked at first time.

What is the issue, please reply me fast.




Thanks in advance,

Nita.
Posted
Updated 30-Jul-18 21:17pm
Comments
Siva Hyderabad 7-Apr-14 3:17am    
could you provide your code.for more clarification
nita kadam 7-Apr-14 3:43am    
My code is simple grid view code.
My grid view dynamically displayed 2-3 times on one page.
same as my link button in that particular grid view appears 2-3 time.
If i click on second or third gridview link button then it not fired click event.
but if i click on link button in first grid view then it is fired.
So what is the issue.
Ajith K Gatty 7-Apr-14 8:25am    
It would be better if you post your code here. Others can check it and probably find a solution for you.
ashok rathod 7-Apr-14 3:56am    
possibly issue with the binding of click event
ZurdoDev 7-Apr-14 7:24am    
Why doesn't it work?

If I understood your problem rightly, so you are binding grid dynamically from code. If that, so u need to bind cliekc event in each postback to link button.
 
Share this answer
 
Are you populating your gridview data in Page_Load method . If Yes try to put your code in if(!IsPostBack)
{
//Call method for populating grid view .
}
 
Share this answer
 

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



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