Hello,
Alors non ce n'est pas possible d'avoir une propriété enabled:=False. Mais tu peux contourner en fessant ceci :
Dans l'événement OnDrawCell de ton stringgrid tu mets ceci :
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol,ARow: Integer; Rect: TRect; State: TGridDrawState);
begin
{Si on veut grisé la colonne 0}
If (ACol = 0) then
begin
{On mets colorie toute la cellule en gris}
F11_Bobinage.Canvas.Brush.Color := clBtnFace;
F11_Bobinage.Canvas.FillRect(Rect);
F11_Bobinage.Canvas.TextOut(Rect.Left,Rect.Top,'');
end;
end;
Bonne prog, JMP77.
N'oubliez pas de cliquer sur réponse acceptée.
|