DBGrid. SetFocus on column 3

How does one set focus on a particular column on a database grid control.  Action = press opt button 1
               Result = set focus dbgrid column 3
RUSTYAsked:
Who is Participating?
 
GeoffSConnect With a Mentor Commented:
You just set the col attribute of the dbgrid control.

dbgMyGrid.SetFocus 'set focus back to the grid
dbgMyGrid.col = 3  'make column 3 the current column

works for me !




0
 
RUSTYAuthor Commented:
Adjusted points to 30
0
 
RUSTYAuthor Commented:
'Course.  Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.