在DBgrid的Keypress事件中写入:
    if dbgrid1.selectedindex=i then
       key:=#0;其中 i为列序数
  如你想要第3列不能输入,则 i:=2
         第4列不能输入,则 i:=3