Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Datagrid - Set focus to specific cell

Status
Not open for further replies.

BelindaNiles

Programmer
Jul 11, 2002
2
US
Hello All- Fairly new to VB
I have a datagrid control populated with the data I need, but I need to set focus on a specific cell. I have tried the following...
dgOrderItem.Row = 0
dgOrderItem.Col = 3
dgOrderItem.SetFocus

and I get the following error on the SetFocus....
Invalid Procedure Call or Arguement

I basically want to start with one cell highlighted and use the tab key to tab to only the fields that are editable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top