﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <description><![CDATA[Comments for Colors in DBGrid]]></description>
    <title><![CDATA[Comments for Colors in DBGrid]]></title>
    <link>http://dn.codegear.com/article/26945</link>
    <!-- source: http://dn.codegear.com/article/26945/feed-->
    <dc:date>2008-11-21T15:01:54-08:00</dc:date>
    <item>
      <description><![CDATA[Testing in Delphi 6.I had to prefix the Default ..... function to get it function.i.e.DBGrid1.DefaultDrawColumnCell (.........)RegardsKA ]]></description>
      <title><![CDATA[Colors in DBGrid]]></title>
      <managingEditor>
	 (Craven Weasel)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=30357</guid>
      <dc:date>2001-10-23T08:16:51-07:00</dc:date>
      <pubDate>2001-10-23T08:16:51-07:00</pubDate>
      <source url="http://dn.codegear.com/article/26945/feed">Comments for Colors in DBGrid</source>
    </item>
    <item>
      <description><![CDATA[procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;  DataCol: Integer; Column: TColumn; State: TGridDrawState);begin    if TDBGrid(Sender).DataSource.DataSet.RecNo mod 2 = 0 then      TDBGrid(Sender).Canvas.Brush.Color := clWindow    else      TDBGrid(Sender).Canvas.Brush.Color := clInfoBk;    end;    DefaultDrawColumnCell(Rect, DataCol, Column, State);  end;end;]]></description>
      <title><![CDATA[re: Colors in DBGrid]]></title>
      <managingEditor>
	 (Klaus Edelmann)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=30334</guid>
      <dc:date>2001-10-22T03:43:15-07:00</dc:date>
      <pubDate>2001-10-22T03:43:15-07:00</pubDate>
      <source url="http://dn.codegear.com/article/26945/feed">Comments for Colors in DBGrid</source>
    </item>
    <item>
      <description><![CDATA[tried this code:(table is TApolloTable in Delhi6) procedure TfPlan.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;  DataCol: Integer; Column: TColumn; State: TGridDrawState);begin  with (Sender as TDBGrid).Canvas do  begin     if (tPlanradSTAT.AsInteger = 1) or        (tPlanradSTAT.AsInteger = 2) or        (tPlanradSTAT.AsInteger = 8) then     begin        Brush.Color := clRed;        Font.Color := clBlack;     end     else     begin        Brush.Color := clWhite;        Font.Color  := clRed;     end;  end;end;when DefaultDrawing set to False I can see the rows butwithout contents.What have I been missing?Kurt.Anneborg@swipnet.se]]></description>
      <title><![CDATA[Colors in DBGrid]]></title>
      <managingEditor>
	 (Craven Weasel)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=30333</guid>
      <dc:date>2001-10-21T23:01:42-07:00</dc:date>
      <pubDate>2001-10-21T23:01:42-07:00</pubDate>
      <source url="http://dn.codegear.com/article/26945/feed">Comments for Colors in DBGrid</source>
    </item>
    <item>
      <description><![CDATA[Ok, but how can it have alternated row colors ?]]></description>
      <title><![CDATA[Colors in DBGrid]]></title>
      <managingEditor>
	 (Didier Largange)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=30188</guid>
      <dc:date>2001-10-11T04:52:06-07:00</dc:date>
      <pubDate>2001-10-11T04:52:06-07:00</pubDate>
      <source url="http://dn.codegear.com/article/26945/feed">Comments for Colors in DBGrid</source>
    </item>
    <item>
      <description><![CDATA[You should change the call of DefaultDrawDataCell to DefaultDrawColumnCell.]]></description>
      <title><![CDATA[Colors in DBGrid]]></title>
      <managingEditor>
	 (Juergen Schwarze)
</managingEditor>
      <guid isPermaLink="true">http://threads.codegear.com/threads/threads.exe/view?commentid=30018</guid>
      <dc:date>2001-09-26T16:51:37-07:00</dc:date>
      <pubDate>2001-09-26T16:51:37-07:00</pubDate>
      <source url="http://dn.codegear.com/article/26945/feed">Comments for Colors in DBGrid</source>
    </item>
    <generator>Atom 1.0 XSLT Transform v1 (http://atom.geekhood.net)</generator>
  </channel>
</rss>