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

How can I set focus to the first record of datagridview in a wpf application?

Regards,
Nagaraju.N
Posted
Updated 28-Nov-10 21:49pm
v2
Comments
Dalek Dave 29-Nov-10 3:50am    
Edited for Grammar and Readability.

1 solution

Try
SQL
DataGridview.Rows[0].cells["cellname"].Selected = true.
 
Share this answer
 
Comments
Dalek Dave 29-Nov-10 3:50am    
Spot on!
Abhinav S 29-Nov-10 11:11am    
Thanks.

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