Forum > Beginners

How to lock a Col in a StringGrid


Hello everyone,

i'm beginning and i have to make a game with 2 players,
all players got 1 col in the StringGrid
and  i wanted to make unable to edit the part of the other player for you or for the turn, but i don't found a way to do this, if you have some tips to block a colls or other way to don't let the edition of a coll tell me

Best Wishes !

You could use OnMouseMove to determine where the mouse is, and depending on over which column it is, adjust the grid Options to have or have not goEditing in it.

Yould also use the OnSelectEditor event of the grid to e.g. make the editor readonly (not nice, but it does the job).



[0] Message Index

Go to full version