Click here to Skip to main content
15,891,713 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have implemented insert functionality in grid view by using footer template. Initially I have set the visibility of the footer to false.On a button click I am showing the footer. I want when button is clicked the focus should be at the footer. Pls suggest how to do this.
Posted
Comments
Dholakiya Ankit 2-Aug-13 1:49am    
see my solution

<pagefooter class="notdisplay">

CSS
.notdisplay
{
display:none;
}

on button click swap class to display

CSS
.display
{
display:block
}


regards :)
 
Share this answer
 
Comments
Soumya 2 2-Aug-13 1:52am    
I am not able to understand the solution.Can u pls explain ...
Dholakiya Ankit 2-Aug-13 2:04am    
you can add class to the footer of gridview right so add notdisplay class first so footer will not display nd on button click change class to display so footer will be display regards..........
Dholakiya Ankit 2-Aug-13 2:05am    
nd do focus like solution2 have
You can set focus to the control of grid view in footer
JavaScript
(TextBox)(gv_Name.FooterRow.Cells[1].FindControl("txt_Name"))).fouse()

Hope so it will work
 
Share this answer
 
This should help you..
http://forums.asp.net/t/906851.aspx[^]
 
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