delphi4arab منتديات دلفي للعرب
تلوين اسطر Dbgrid - نسخة قابلة للطباعة

+- delphi4arab منتديات دلفي للعرب (https://delphi4arab.net/forum)
+-- قسم : منتديات دلفي للعرب التعليمية (https://delphi4arab.net/forum/forumdisplay.php?fid=3)
+--- قسم : سؤال و جواب حول دلفي (https://delphi4arab.net/forum/forumdisplay.php?fid=15)
+--- الموضوع : تلوين اسطر Dbgrid (/showthread.php?tid=4368)



تلوين اسطر Dbgrid - King SofT - 20-07-2012

السلام عليكم

سؤالي هو كيفية تلوين اسطر الـ {Dbgrid} فقط التي تحمل قيمة محددة كما في الصورة
[صورة: attachment.php?attachmentid=3535&d=1342739518]


تلوين اسطر Dbgrid - rabiedz - 23-07-2012

كود :
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin if Table1.FieldByName('jour').AsCurrency>= 10 then begin DBGrid1.Canvas.Font.Color:=clWhite; DBGrid1.Canvas.Brush.Color:=clBlack; end; DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State); end;



تلوين اسطر Dbgrid - nansoft - 26-07-2012

في نفس السياق كيف تتلون المعلومات المطلوبة في الـ DBGrid بعد عملية البحث،
أي تتلون المعلومات المبحث عنها فقط في الـ DBGrid