procedure   TFormUser.tvUserEditing(Sender:   TcxCustomGridTableView;   AItem:   TcxCustomGridTableItem;   var   AAllow:   Boolean);   
begin   
//如果第三列值为True,则第4列不能修改   
 if   (tvUser.Controller.FocusedRecord.Values[2]   =   True)   and   (AItem.Index   =   4)   then   
  AAllow   :=   False   
 else   

  AAllow   :=   True;   
end;

posted on 2011-03-27 23:42  fyen  阅读(344)  评论(0编辑  收藏  举报