>i have a grid from which i want to let the user delete lines. if they hit the 'Del' button on the keyboard, in the KeyPress event i have code to confirm deletion and then delete the record. problem is that the column in which i allow the delete to be initiated is ReadOnly and vfp pops up a system message 'this control is read only'. hwo can i get rid of this vfp message?
>tia
You don't need to get rid of that message. Prevent keypress default action :
if nKeyCode = DelKey
nodefault
doYourStuff
Cetin