Jump to content

Setting the tunistringgrid selected cell


aem

Recommended Posts

 

I have pursued the forum and tried several promising methods, but I cannot seem

to be able to programmatically control the selected cell of the tunistringgrid.

The tunistringgrid clearly maintains both a 'truly selected' cell and a highlighted cell.

    Ar runtime if you specify

       grid.row:=3;  grid.col:=3;

          The cell 3,3 is indeed highlighted.  But you can still discern a light line around the

          cell that had been selected earlier. And if the user hits the ENTER key, the editing occurs

          within that previous cell, not 3,3 as hoped.

The subclassing of the grid class and using currcol/currrow doesn't seem to move the

true selection either.

I was surprised not to find this mentioned anywhere - but I suppose most people use

the stringgrid for display purposes rather than as sections of data entry screens.

(incidentally, the ENTER key to edit a cell is a constant complaint from EVERY tester we have)

If you have a tip about controlling the selected cell I would be grateful.

thanks

tonyM

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...