掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
DBグリッドのセルごとの色付けについて (ID:20766)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
DrawColumnCellイベント使えばできるかな・・・ procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin if (セルに色をつけたい条件) then begin DBGrid1.Canvas.Brush.Color := 指定色(clSkyBlue等); end; DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State); end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.