General information
Category:
Coding, syntax & commands
It may be you rearranged or add/delete columns to your grid previously. The gridName.Column1 does not necessary correspond to the first column you see on the screen, and so are the rest of the grid columns.
Do an explicit SetFocus() will solve this problem. For e.g., gridName.grcColumnName.txtActiveControlName.SetFocus() will set the focus the the column ColumnName if it is enabled, not readonly, and visible.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only