Prevent a DataGrid in Windows Form Getting Focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

How to prevent a datagrid in Windows form getting focus? Even user click on
it.

I use barcode scanner as input and display the result in a datagrid. My
problem is when the datagrid got focus, the scanner input will be discarded.
I cannot find any event to handle the input.

Thanks,

Tedmond
 
You can disable grids, which will not allow a user to do anything, but I am
not sure it stops click events from firing. As another option, consider
spinning the scanner on another thread to avoid any sort of focus loss
interference.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
Back
Top