Click here to Skip to main content
15,904,986 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
my requirement is ...
i have check box column which contain checkboxes and fruits column which contain fruit names....when i press checkbox the focus must move to the fruits column

ex.. checkbox fruits

when i click at check box focus have to move to fruits column
Posted
Comments
DamithSL 30-Jun-12 5:47am    
is this web project or windows forms project. tag the question correctly as ASP.N ET, Winform or WPF based on your requirement.
Member 9068558 30-Jun-12 5:52am    
WINDOWS FORM PROJECT USING C#.NET
DamithSL 30-Jun-12 6:27am    
why SHOUTING? Caps lock on? you better learn how to ask question first. See the answer you get because of not given enough details about the problem.
Member 9068558 30-Jun-12 6:29am    
damith if u dnt no answer no need to say
DamithSL 30-Jun-12 7:02am    
Ok, good luck

on checked change event

C#
checkboxFruites.focus();
 
Share this answer
 
You can use JavaScript in that case. Find ID of that component and set focus.

JavaScript
document.getElementByID("<%=txtBox1.ClientID%>").focus();

and apply this function in onblur event of checkbox.
 
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