掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
DBGrid色づけ (ID:37479)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
これでどうですか? DBGridの名前はそちらに合わせてくださいね。 procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin if Column.Field.AsString= '成功' then DBGrid1.Canvas.Brush.Color:= clYellow; DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State); end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.