Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. procedure TFormBonificaciones.GridPropioCanEditCell(Sender: TObject; ARow, ACol: Integer;
  2. var CanEdit: Boolean);
  3. var
  4. color: Integer;
  5. begin
  6. CanEdit := True;
  7. color := GridPropio.Colors[ACol, ARow];
  8. if GridPropio.Cells[0, ARow] = '*' then
  9. if (GridPropio.Cells[CTIPO, ARow] <> '') then
  10. if (ACol <> CDESCRIPCION) and (color <> TUtilidades.Colores.GridCellColor.COLOR_ROJO) then
  11. CanEdit := True
  12. else
  13. CanEdit := False
  14. else if ACol <> CTIPO then
  15. CanEdit := False
  16. else
  17. CanEdit := True
  18. else
  19. CanEdit := False;
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement