Click here to Skip to main content
15,887,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I am using VS 2005,asp.net,c#.net.
I have a grid view which is in an update panel.
How to give focus to a cell of 5 th column in grid view when loading of page?

Thanks in advance
George.
Posted

1 solution

use onrowdatabound event in gridview


gridview1.Rows[rowindex].Cells[cellindex].Focus();
 
Share this answer
 
v2

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