Delphi Dünyası Facebook'ta

Kodbank İndir

! CODEBANK 2012 !

İNDİRMEK&DETAYLI BİLGİ ALMAK İÇİN BURAYI TIKLAYINIZ.

Gönderen Konu: DB Grid satır renklendirme ....  (Okunma sayısı 3643 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

muderless

  • Ziyaretçi
DB Grid satır renklendirme ....
« : 26 Kasım 2005 01:39:43 »
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
  DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
 // kod burda başlıyor
 if DBGrid1.DataSource.DataSet.RecNo mod 2 =  0 then
          Dbgrid1.Canvas.brush.Color:=$00BDC8F0
     else
     if DBGrid1.DataSource.DataSet.RecNo mod 2 =  1 then
           Dbgrid1.Canvas.Brush.Color:=$00D5AC97  ;

     dbgrid1.Canvas.Brush.Color:=Dbgrid1.Canvas.Brush.Color;
     Dbgrid1.DefaultDrawColumnCell(Rect,Datacol,column,state);

end;

Çevrimdışı stronger_ht

  • Delphi 1 Level 5
  • *****
  • İleti: 45
  • Rep: +0/-0
Ynt: DB Grid satır renklendirme ....
« Yanıtla #1 : 14 Şubat 2006 11:50:29 »
teşekkürler eve gidince denicem
stronger_ht

Çevrimdışı aTaKaNn

  • Delphi 1 Level 1
  • *
  • İleti: 6
  • Rep: +0/-0
Ynt: DB Grid satır renklendirme ....
« Yanıtla #2 : 02 Haziran 2006 11:33:31 »
arkadasim or dbgrid diye bir bileşen var google daaratır san bula bilirsin ama bulamazsan haber ver gondereyim..kod yazmaya gerek kalmadan işini hallede biliyorsun..Kolay gelsin..

muderless

  • Ziyaretçi
Ynt: DB Grid satır renklendirme ....
« Yanıtla #3 : 14 Ekim 2006 16:15:48 »
amaç delphi de kendimizi geliştirmek . bende de var bir başka dbgrid quantumgrid belki duymuşsundur .