Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus to Textbox control in Grid *sometimes* works
Message
From
09/05/2002 06:52:39
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00654347
Message ID:
00654358
Views:
17
Same thing. My command button is in another container which I had created as an "Add Delete" class. I will try to isolate by using a single 'Add' button...

>Hi!
>
>Try to set focus to grid before setting focus to column.
>
>>Oddly enough, I get the same result when "Grid.Column.SetFocus" is called...
>>
>>>Hi!
>>>
>>>Activate required column using "Grid.Column.SetFocus". Explicit call to controls inside of the grid will have no effect because they're ruled by grid and their state and value are undetermined until control is focused by *grid*.
>>>
>>>Hope this helps.
>>>
>>>>I wonder if anybody has seen this before...
>>>>
>>>>I have a grid contained in a container. Also contained in the container is a command button. The click event of the command button adds a new record to the recordsource of the grid, after which it calls the SetFocus of the textbox in the first column of the grid.
>>>>
>>>>The first time I invoke this code, the textbox gets focus as expected. However, subsequent invocations result in the focus remaining on the calling command button.
>>>>
>>>>Has anybody seen anything like this before? Any suggestions?
>>>>
>>>>Thanks in advance.
>>>>
>>>>Andrew
On a CLEAR day you can see forever.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform