Hi
The code is doing what you telling to do, in the on selectcell event of grid1 its calling inputbox( which displays the box...
if you want the grid to be editable then you set goediting to true in the options property of grid1; then you can enter text direct into cell.
if you want to execute some code when you finish editing the cell, you would put this code in the OnEditingDone event of grid1