基本的に、クライアントは Delphi dxDBGrid の 1 行の色を変更したいと考えています。列のような行プロパティはありません。
何か案は?
You can use styles. The DevExpres Grid in DBTableView has a event named: OnGetContentStyle in Styles part.
You can create at design two styles and apply the desired style at runtime.
procedure TFormBrBase.DBTableViewStylesGetContentStyle(
Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord;
AItem: TcxCustomGridTableItem; out AStyle: TcxStyle);
With ARecord you can access to the actual record values. With this values you decide and change the value of the AStyle(out) param. This line is painted with this style.
Greetings.
Neftalí
Germán Estévez
グリッドの OnCustomDrawCell イベントで使用します。
If ANode.Values[SomeColumnName.Index] = SomeValue then
AFont.Color := clRed;
これは、参照している QuantumGrid v3 であると想定しています。v4以降の場合、cxStylesを指す答えは正しいです。
申し訳ありませんが、OnCustomDraw イベントを使用してください。金曜日の朝。