stringGrids 部分只读

在StringGrid怎样制作只读的列在 OnSelectCell事件处理程序中,加入: (所有的列均设成可修改的)

if Col mod 2 = 0 then
grd.Options := grd.Options + [goEditing]
else
grd.Options := grd.Options - [goEditing];

 

posted on 2013-04-08 16:22  martian6125  阅读(117)  评论(0编辑  收藏  举报