質問

Delphi 7で様式化されたテーブルの使い方? 例えば:

画像の入力ここにある

役に立ちましたか?

解決

TDBGridコンポーネントをテーマにしたい場合は、 Themed DBGrid runtime replacement を使用できます。北とアンドレアスハウスラデン

他のヒント

私はあなたのためにこの例をDelphi 7とWindows 8.1 に書いた。

イベントを使用する drawColumncell 色や何か他のものを変える。

procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
  try
    if Column.FieldName = 'FIRST_NAME' then
      DBGrid1.Canvas.Brush.Color := clGreen;
  finally
    DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
  end;
end;
.

ダウンロードしてください。 ファイル

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top