Setting focus to a control within a usercontrol

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

Guest

I have a user control that contains a grid. I want to set focus to the grid
when the user control receives focus.

I have tried calling grd.focus() for the gotfocus of the user control, but
that doesnt work.

Any ideas?

Thanks
 
One easy way is to set the TabIndex of the grid to 0 (and any other controls
to subsequent #s).
 
Back
Top