Click here to Skip to main content
15,907,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i focus to a particular cell in datagridview in c# windows application
Posted

1 solution

SQL
datagridview1.ClearSelection();
          datagridview1.Rows[RowIndex].Cells[ColIndex].Selected = true;

Happy coding!
:)
 
Share this answer
 
Comments
Sharon 2 29-May-13 6:29am    
i'm not getting the cell selected..
Sharon 2 29-May-13 6:50am    
where i have to give this in cell validating or in cell valuechanged..
Aarti Meswania 29-May-13 7:05am    
if you have events validating / velidated then inside them

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