Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus in Grid
Message
From
03/05/2001 05:28:53
 
 
To
03/05/2001 03:14:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00502883
Message ID:
00502903
Views:
15
Hi!

You can go to particular row programmetically by setting the record pointer in the record source of the grid to the appropriate record, as Cetin already pointed. You can select particular colunm by setting focus on it: Grid.Column1.SetFocus(). Combine bothe these things and you will have activatign a cell. Cell activation works reliable only when grid is focused.

Finally, take a look to my FAQ article about refreshing of the grid, maybe it will be useful for you too.

>Hi!
>
>I am trying to make grid code that will:
>
>When a use ris in readonly non-edit mode they can select a row/column in a grid.
>Then after they press the edit button (thus focus is gone from the grid)
>The cursor goes directly back to the same field in the grid.
>
>However, Also when going into edit mode the cursors order changes (by design).
>
>How could I handle this?
>
>I tried:
>
>AfterRowChange
>
>IF lEditMode
> thisform.nrowno=this.activerow
> thisform.ncolno=nColIndex
>ENDIF
>
>Edit Button Click
>thisform.measlist.activatecell(thisform.nrowno,thisform.ncolno)
>
>This worked sometimes but the grid jumps all over the place and is unreliable.
>Any ideas?
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform