Search code examples
visual-foxpro

VFP9 : Removing a control from a Grid Column


I have added an extra TextBox control to a column of a grid, and I want to remove that extra control. The guidance I have seen suggests finding the control in the property sheet (which I can do) and then clicking on the form's caption area and pressing 'Delete'.

I must be doing something wrong! I have clicked on the control in the properties window so that it is highlighted (blue). Pressing delete does not do anything. If I right-click on this entry (in the properties window), a menu is indeed displayed (beginning 'Property Descriptions'), but there is no 'Delete'. I have also tried pressing Ctrl-X while the control is highlighted in the properties window, but without success.

Would be grateful for guidance.


Solution

    • Ctrl+Click on the grid (puts grid in edit mode).
    • Click the column where the unwanted textbox contol is. In PEM sheet you would see the column's name - say Column3.
    • In PEM Sheet click the drop down and select the textbox under that column. Now in PEM sheet you should see the name of the textbox.
    • Click the form title and then DEL.

    It is really simple.