Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have desk top application
I have one form call item list...which have only two control one is datagridview and other is search textbox...datagrid fetch the all data from item_list table..

my problem is that when i write in search textbox the data grid focuses to that record and also focus on search box textbox...i want both control focus...how it is possible?? pls give me any suggestion
Posted
Comments
TrushnaK 20-Dec-13 7:31am    
you can't focus on two control at the same time.
Karthik_Mahalingam 20-Dec-13 7:35am    
right trunshank...
if u r sure on the answer..You can post this as solution....
smithjdst 23-Dec-13 0:56am    
You could select the record (Rows/Column/Cells) to highlight it, and retain focus on the textbox.

1 solution

You cannot focus on two controls at the same time: the focus indicates where keyboard input will be going, and it cannot go to two controls simultaneously.
 
Share this answer
 
Comments
Karthik_Mahalingam 20-Dec-13 7:34am    
exact.... my 5!!

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